When migrating from a monolithic application to a microservices application, a big, integrated system must be divided into smaller, separate services.
As a central gateway, it intercepts requests, routes them to particular microservices, collects responses, and returns them while handling authentication and authorization, allowing microservices to focus on their core tasks.