Sobes.tech
Middle+

How did the event from ERP get into Kafka? Through BFF or an intermediate service?

sobes.tech AI

Answer from AI

Events from the ERP system usually reach Kafka through an intermediate service, rather than directly via BFF. The intermediate service acts as an adapter or integrator, which receives events from ERP, transforms them into the required format, and publishes them to Kafka.

This approach allows:

  • To separate the frontend business logic (BFF) from integration tasks.
  • To centralize the processing and transformation of events.
  • To ensure reliability and repeatability of publishing to Kafka.

For example, a service subscribes to ERP events via API or webhook, then forms a message and sends it to Kafka. The BFF is responsible for interacting with the client application and does not handle ERP integration directly.