We deploy microservices in Kubernetes environment.
For providing a solution to a business use-case using microservices,
Is the idea of service registration and service discovery not an anti pattern? where the scenario of starting microservice depends on the availability of other microservice
For example, using API composition, we would need service discovery. We have a usecase in ecommerce, where Front end rest api clients(React or Angular) need to talk to backend(checkout, cart, order, review) services using api composition pattern, to render UI. Not sure, if event based messaging pattern(say using kafka) would be a good option between Front end & Back end services, just to avoid api composition
+++
As mentioned here,
What are microservices?
Microservices - also known as the microservice architecture - is an architectural style that structures an application as a collection of services that are:
Independently deployable
Loosely coupled
Organized around business capabilities
Owned by a small team
Not sure, if event-based messaging pattern(say using kafka) would be a good option between Front end & Back end services, just to avoid API compositionWhy would you do so? To what end? Who you are trying to impress by making things unnecessarily more complicated? There should be a good reason to go one or the other way and "because strangers on the internet say..." is not a good one.