Hi,
I thought this is a hot topic as functions or lambdas generally have a single responsibility. In the case of Spring Boot microservices connected by message brokers the event-driven model is established. The bounded contexts are clear.
But serverless function are different. They are light. Generally an event is published from a bounded context and received by other services. How does this work with azure functions ? It seems that multiple functions are needed to work on one bounded context.
Can we still publish events to another group of functions working on other bounded contexts ? Otherwise functions have no boundary and they write and read all tables without control.
What is the advice of this community ? I am interested in using Commands and events. So the REST contract stop at the API gateway and gets transformed into an event(OpenAPI/AsyncAPI). This event can be again transformed to another external service's REST contract by a function with that responsibility. But internally they are events and not REST.
Thanks