Microservices: what are pros and cons?

Pros Sam Newman in Building Microservices, enumerates the key benefits of Microservices as following: Technology Heterogeneity With a system composed of multiple, collaborating services, we can decide to use different technologies inside each one. This allows us to pick the right tool for each job, rather than having to select a more standardized, one-size-fits-all approach … Read more

Eureka and Kubernetes

How can I setup something like eureka.client.serviceUri? You have to have a Kubernetes service on top of the eureka pods/deployments which then will provide you a referable IP address and port number. And then use that referable address to look up the Eureka service, instead of “8761”. To address further question about HA configuration of … Read more

Websockets in microservices architecture

Websockets A websocket connection opened by a client must eventually connect to a websocket server. API Gateway The job of the API gateway is to accept an incoming websocket connection from a client and correctly route it to a websocket server. An API gateway will redirect ALL data sent from a client websocket to the … Read more

Use docker-compose with multiple repositories

You can have your CI build and push images for each service you want to run, and have the production environment run all 3 containers. Then, your production docker-compose.yml would look like this: lb: image: nginx depends_on: – rails – express ports: 80:80 rails: image: yourorg/railsapp express: image: yourorg/expressapp Be noted that docker-compose isn’t recommended … Read more

Decompose microservices: Business capability vs Domain

The commenters are right – there are some subjective definitions at play here. But there are some principles and concepts that can help reason about the different approaches. Conway’s Law It’s not strictly the original definition, but I think the distinction can be better understood with reference to Conway’s Law: Any organization that designs a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)