We're trying to split our monolithic core into microservices and add some new ones connected with each other using the message system (e.g. Kafka).
The next stage is to create API endpoints for communication between mobile apps and microservices through Api gateway.
What would be a good solution for developing API gateway to transmit data to/from microservices?
- use message system as request-reply one (transform requests on API gateway into message commands, wait for response from message system with status or necessary data)?
- create REST endpoints on necessary microservices (e.g. using REST.li) to send or get data through gateway; use message system for consistency of data based on produced events by microservices?
Thanks for advice and some ideas