Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

We are going to end up with dozens of these microservices (most are Akka-based), and I'm unsure how to best manage their deployment. Specifically, they are built to be independent of each other and as specialized and distributed as possible.

My question stems from the fact that all of them are too small for their own individual JVMs; even if we were to host them on AWS nano instances, we'll still end up with about 40 machines if you factor in redundancy, and such a high number is simply not needed. Three medium size instances could (and do) easily handle the entire workload.

Currently, I just group them into "container" applications, somewhat randomly, and then run these container applications on larger JVMs.

However, there has to be a better way. I am not aware of any application servers for Akka where you can just "deploy actors", so I wanted to get some insight on how others run Akka microservices in production (and specifically how to manage deployment).

This is probably not limited to Scala and Akka, but most other platforms have dedicated app servers where you deploy these things.

1 Answer

0 votes
by (50.2k points)
edited by

The only way you get the decoupling, isolation, resilience you want with microservices is achieved by a service orchestration tool, and that would indeed run them in individual processes, each with their own JVM. with this, you can deploy, update, stop and start them individually.

As the question suggests that you are trying to treat JVM and amazon VMs are equivalent, but the fact is you can have multiple jvm processes in a single virtual machine.

There are many tools in the market but I suggest you use kubernetes.

Note:This tool has a lot of features that you may be useful in the future such as easy scaling, log consolidation, service lookup, health checks/service failure handling, etc.

Check out the Microservices Training to gain knowledge in the field of Microservices!\

Related questions

Browse Categories

...