Play 2.4.X : Microservice Architecture using Play and Scala


Playing-Microservices

This blog describes a basic Microservice architecture design using Play 2.4.X and Scala. The big idea behind microservices is to architect large, complex and long-lived applications as a set of cohesive services that evolve over time. The term microservices strongly suggests that the services should be small.

In short, the microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API.

Single node microservice architecture

microservices-arch

Multiple node microservice architecture with load balancer

microservices-arch-with-elb

Dive into code level activities

Scalastyle : Check the code quality

To check code quality of all the modules

$ ./activator clean compile scalastyle

Scoverage : Check code coverage of test cases

To check code coverage of test cases for all modules

$ ./activator clean coverage test

By default, scoverage will generate reports for each project seperately. You can merge them into an aggregated report by invoking

$ ./activator coverageAggregate

Deployment : microservices

$ ./activator "project <service-name>" "run <PORT>"

References


About Anand Kumar Singh

Lead Software Engineer at Rklick Solutions LLC. He is having 4+ years of experience in Java, Grails/Groovy and Scala language. Anand also knows about Javascript, jQuery, CSS and other UI design technologies. He is SCJP and OCA certified developer. Anand is passionate to work with upcoming technologies and bleeding platforms providing the new way to programming & development. He is actively involved in development & maintenance of several software projects. He has been enjoying Scala for more than a year now. Anand completed his MCA from IGNOU. As a Developer, Anand is continuing his journey by actively collaborating with other Developers in his field. Anand is actively contributing on the ScalaGeek platform. He likes to spend his free time in Cooking, watching Discovery for new Technology and visiting new places with friends.
This entry was posted in Architecture, Microservices, Multi-Project Builds, Play 2.4.X, Play Framework, Scala, Web, Web Services and tagged , , , , , , , , , , , , , . Bookmark the permalink.

5 Responses to Play 2.4.X : Microservice Architecture using Play and Scala

  1. Pingback: Play 2.4.X : Microservice Architecture using Play and Scala | Knoldus | LinuxHead

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s