Kubernetes, when to use ?

infinitezone

Luqman Hakim

Posted on September 1, 2024

Kubernetes, when to use ?

We have a lot of problems as our application running in a monolith structure rather than microservices (literally only one server). As time goes by, our application increase in usage and functionalities thus making this is a backstab to our current server specs. RAM usage going high all the time. Application crashes quite frequent because the server specs cannot handle the current workloads.

I suggest to the team to make our application high available, meaning we can share the workload across multiple servers. If one of the applications crashes, we have time to recover it while maintaining the availability of the application.

Our application mainly running in three separate services.

  1. Main service - handling transactions, calculation etc.
  2. Batch service - sending emails, reminder, generate incremental numbers etc.
  3. Report service - generate reports for our client for their usage, audit etc.

Initially, all these process running in one application. We know to make our application run in multiple servers, we need to separate out the batch service so that we will not sent our emails on notifications multiple times. So we separate out batch service so it will be running only on one server.

Now our application can run in high availability mode. Multiple main services will handle the transaction and incoming request from users but our report service still embedded in the main service, that is okay but as the time goes by, many users generating the report thus sometimes our main service crashes.

The next thing is we separate out our report service so that if a lot of users generating the report, the main service that handle transactions can still work as usual and maintaining our uptime.

Now, all of our service running independently. Great! What if the servers crashes? Who's gonna recover it if the team is on holiday on still sleeping? (obviously every human being need to rest right?)

So we decided to move to Kubernetes. Autoscale, autorecover, all in one place. Like a one-stop-center for a production grade application right?

💖 💪 🙅 🚩
infinitezone
Luqman Hakim

Posted on September 1, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related