Download - Scalatra scala meetup
Tomasz Lelek
tomekl007
@tomekl007
How to build microservices using Scalatra and Scala ?
Presentation plan
1. Business context2. Technology3. Live coding4. Production example
Monolith
Same functionality – new architecture
Redirecting request
Url Rewriting
#Apache rewrite url, work for post requestRewriteEngine OnRewriteRule /generate http://reportservice.no/generate [P]
Needs
and
Embedded Container
Starting Service
./sbt>container:start[info] Started [email protected]:8090[success] Total time: 2 s
Let’s create simple project
How microservice looks like?
Using via imported client
Many clients
Scala java - interoperability
Rest, json, http
Architecture
Managing configuration
Configuration Service
Asking for configuration
Graph visualization
Circuit Breaker
Hystrix
Thank You, Questions ?