I want to change the communication between (micro)-services from REST to Kafka. I'm not sure about the topics and wanted to hear some opinions about that.
Consider the following setup: I have an API-Gateway that provides CRUD functions via REST for web applications. So I have 4 endpoints which users can call. The API-Gateway will produce the request and consumes the responses from the second service. The second service consumes the requests, access the database to execute the CRUD operations on the database and produces the result.
How many topics should I create? Do I have to create 8 (2 per endpoint (request/response)) or is there a better way to do it?
Would like to hear some experience or links to talks / documentation on that.