A Simple Example of WebSocket based Microservice Architecure using Akka-HTTP in Scala

In myprevious blog, I explained how you can implement WebSocket server using Akka-HTTP . As you know, Microservice architecture has become very popular in recent years. This architecture fits perfect

1) When you want to give support of your application for many platforms such as web, mobile etc.

2) When your application consists of multiple services such as order service, account service, payment service etc.

In this blog, I have explained a simple example of WebSocket based Microservice Architecure using Akka-HTTP in Scala. You will see how WebSocket based Microservices can communicate with each other in a application.

In this example, there are two sub modules Account for Account related services and Order for Order related services. There is one more sub module Api, which will forward coming requests to their corresponding services.