SlideShare a Scribd company logo
Microservices in Scala 
workshop by Iterators 
by Jacek Głodek, Łukasz Sowa and Andrzej Michałowski
Questions we try to answer today: 
• What are microservices? 
• What's the difference between them vs monolithic 
architectures? 
• What are the different flavours of microservices? 
• How to use Spray.io, Play and Akka to do 
microservices?
Agenda 
• Short introduction to microservices 
• Spec of our system 
• "MS backbone - simple microservices with spray.io" talk 
• Auth and url collection microservices 
• "Asynchronous views and web services with Play and Akka" talk 
• Image fetching — reactive deffered job — Play with websockets 
• "Eventsourcing - total data immutability with akka persistence" talk 
• Voting made with event sourcing 
• Ops, testing and monitoring 
• Summary
Architectures and practices 
What architectures are we talking about?! 
Don't think MVC, think MVC web-app run on multiple 
nodes with load-balancing, memcached cache and 
Postgres db. 
What practices are we talking about?! 
Think TDD, BDD, SOLID, etc.
Code and code-base 
architecture and practices 
• programming paradigms 
• TDD, SOLID, BDD, etc. 
• Folder structure 
• Object naming conventions 
• Separation of concerns 
• Sharing data in threads
Distributed system 
architecture 
• Interfaces, protocols and 
contracts between modules 
• System modules 
• APIs 
• Deployment strategy 
• Non-functional guarantees
“Microservices” 
is a vague term 
• multiple small apps with REST/HTTP interface, 
• multiple small apps with deferred message 
processing 
• multiple single-file apps with less than 100 lines of 
code 
• multiple small apps possibly written in different 
languages communicating with each other
Microservices 
• small single-purpose apps with bounded domain 
enabling polyglot programming 
+ add your favourite ingredients 
+ differences from monolithic architecture 
© Marivlada | Dreamstime Stock 
Photos & Stock Free Images
Microservices vs Monolithic architecture 
Deployment units 
Monolith Microservices
Microservices vs Monolithic architecture 
Deployment strategy 
Monolith Microservices
Microservices vs Monolithic architecture 
Coupling 
Monolith Microservices 
• global variables 
• messages 
• function calls 
• data structures 
• shared memory 
• multiple levels of indirection 
managed with 
• SOLID, encapsulation and other practices 
• dependency injection, etc. 
• different protocols 
• shared DB’s 
• shared message queues 
managed with 
• contracts
Microservices vs Monolithic architecture 
Interfaces vs Contracts 
Monolith Microservices 
• written with code and shared interfaces 
within code packages and libraries 
• checked by tests or compilers (?) 
• type validations 
• api calls defined by the language 
• encapsulation, single-responsibility 
rule, etc. 
Problems: 
• meta-programming, monkey-patching, 
global state and workarounds. 
• spoken / unspoken 
• should be defined on “paper” 
• defined by protocols, and technologies 
used, like: 
• http, websockets, RPC, rabbitMQ, 
shared MongoDB or Redis, etc. ) 
Problems: 
• changing contract or having no contract 
requires changing multiple services. 
• multiple API versions without easy 
solution for validating consistency
Programming microservices
Small single purpose code 
• Low complexity 
• No code-level coupling 
with other modules 
• “this big” or one 
hundred lines of code 
• Easy to rewrite 
• Rewrite instead of 
refactor 
• Easy to spot inputs and 
outputs 
• Still requires readable 
logic
Relevant metrics 
• Measuring business 
performance using relevant 
metrics 
• Visualisation 
• Ex. Kamon, custom charts 
Ex: 
• forms processed, 
• mails sent, 
• PDF invoices generated 
• performance metrics: 
• response times 
• queue sizes 
• ex. New Relic, etc.
Continuous deployment with hot 
swapping 
Having all the metrics: 
• You can deploy continuously 
• You can test the service by deploying new and old 
versions concurrently. 
• Given enough fail-safety contracts, you can test in 
production 
• One service down shouldn’t break whole architecture
Polyglot programming
Problems and dilemmas
Problems and Dilemmas 
• synchronous and asynchronous processing 
• guarantees and SLAs 
• shared and private databases 
• making layers of micro services 
• bare-metal vs platforms 
• data-driven systems, eventsourcing and real-time 
messaging
Synchronous vs 
Asynchronous processing 
Synchronous processing 
• immediate responses 
• fast and hard failure 
• “asking” 
• request timeouts 
• problematic to debug series of request 
Ex. chain of HTTP request and getting 200 
Success response 
Asynchronous processing 
• posting jobs to be processed 
• tell don’t ask 
• fire and forget 
• need of pooling or waiting for response 
• longer jobs 
• failures can be recovered from! 
Ex. uploading a video file to be processed 
and getting “Video uploaded successfuly” 
response.
Guarantees and SLA’s 
Is clicking like button same as performing bank transfer? Do we really need full 
ACID DB for holding chat messages? Will it perform fast enough to serve 
thousand of clients concurrently without building whole cluster of DB’s? 
100% consistency and synchronicity is not possible to achieve in distributed 
system without introducing system wide locks. 
System-wide locks affect performance a lot, while we try to achieve reactive and 
scalable system. 
In microservices we can keep different parts of system with different guarantees 
and different approaches
Shared vs private databases 
Shared database 
• pretty strong contract 
• convenient for simple domain problems 
• easier to maintain 
• problems: 
• coupling too many services, too deeply. 
• can become performance bottle-neck 
Private databases 
• useful for decoupling and reuse 
• useful for performance 
• useful for embedding in microservices that abstract 
complicated domain models 
• difficult to maintain, although can many databases can 
work on single db cluster/instance. 
• useful for giving microservice authority over some data 
• problems: 
• data sharding
Layers of micro services 
frontend, public facing micro services, 
background workers and services
Layers of micro services 
frontend issues 
• CORS (Cross Origin Resource Sharing) 
• Rendering of HTML: server-side or in javascript 
• Moving caches to CDN 
• Keeping modularity and reusability also on the frontend side 
• One backend microservice failure shouldn’t break whole frontend.
Layers of micro services 
user facing services issues 
• CORS 
• Versioning of API 
• Authentication 
• Caching 
• Loadbalancing 
• Security
Layers of micro services 
internal services 
• Security 
• Scalability 
• Monitoring for failures 
• Keeping the data consistent 
• Garbage-in garbage-out
Platform abstraction level 
bare-metal servers vs platforms 
Higher level framework = more difficult polyglot 
programming + easier maintenance + possible code 
sharing + more tight coupling opportunities
Stateful databases vs 
eventsourcing 
Stateful databases 
• State stored in the database 
• Ex. “John has $3122 
USD on his account” 
• Transactions and locks that 
enable us to mutate the 
state 
Eventsourcing 
• No state just events. 
• Ex. “John got spent $12 USD” 
• State is inferred from the past 
events… 
• Every situation can be replayed! 
• Events are immutable = no 
problem with locking, etc. 
We can also not care about keeping the data at all.
… and other dilemmas. 
But…
Why not mix all the approaches?
Can sole database 
be a microservice?
Must microservice be 
based on 
REST interfaces?
How would you 
model microservices 
for the last system 
you developed?
That’s it for the intro 
Thanks! 
jacek@theiterators.com
Summary 
Microservices come in different flavours:! 
sync, async, rest, mq, databases, events, hard 
and easy guarantees, with private and shared 
databases, based on bare-metal machines and 
high level platforms. 
© Marivlada | Dreamstime Stock 
Photos & Stock Free Images
Summary 
Spray is great foundation: 
for simple HTTP services 
for connecting with awesome Akka processing framework 
with great directives for strictly defining what requests get 
processed 
with great marshalling and serialisation 
who make simple easy and abstractable
Summary 
Play is has some useful elements: 
! 
nice routing DSL, 
nice controller with Action composing 
nice Websockets with Akka actors 
lots of libraries to integrate to 
big boilerplate
Summary 
Akka is great for messaging, makes concurrent 
programming easy! 
! Actors are not threads 
Messages and Questions with timeouts 
Scheduling 
Watch not to make bloated — keep it single 
purpose
Summary 
Eventsourcing ! 
! Don’t store mutable state 
Store immutable events 
Rebuild state by processing the past events 
Akka persistance stores the events for you in a 
journal of choice (Mongo, Redis, Postgres, Maria, 
Mysql)
What haven’t we talked about 
! 
JVM microframeworks — Finagle, etc. 
Frontend — how to keep modularity, where to generate HTML, 
how to handle caching. 
Monitoring — health checks and metrics (spray directives?) and 
monitoring front end 
DevOps — How to configure loadbalancers, CORS, handling 
configuration and discovery of microservices, prepare auto-scaling, 
and handling situations when services fail, or how to make 
hot swap deployments.
Thanks! 
Łukasz Sowa @luksow 
lukasz@theiterators.com 
Jacek Głodek @jacekglodek 
jacek@theiterators.com

More Related Content

PDF
Building microservices web application using scala & akka
PDF
Microservices Architecture
PPTX
Micro services Architecture
PDF
Microservices in Scala - theory & practice
PPTX
Data stores: beyond relational databases
PPTX
Debugging Microservices - key challenges and techniques - Microservices Odesa...
PDF
Asynchronous Microservices in nodejs
PDF
The 6 Rules for Modernizing Your Legacy Java Monolith with Microservices
Building microservices web application using scala & akka
Microservices Architecture
Micro services Architecture
Microservices in Scala - theory & practice
Data stores: beyond relational databases
Debugging Microservices - key challenges and techniques - Microservices Odesa...
Asynchronous Microservices in nodejs
The 6 Rules for Modernizing Your Legacy Java Monolith with Microservices

What's hot (20)

PDF
Microservices with Spring
PPTX
Come for the traffic management, stay for the security
PDF
Microservices Antipatterns
PPTX
Tokyo Azure Meetup #6 - Azure Monthly Update - June
PDF
REST vs. Messaging For Microservices
PPTX
Microservices Journey Fall 2017
PDF
Microservices with Spring Boot
PPTX
Tokyo Azure Meetup #4 - Build 2016 Overview
PPTX
Microservices and Integration: what's next with Istio service mesh
PPTX
Tech Talks Microservices
PDF
Istio: solving challenges of hybrid cloud
PPTX
Global Azure Bootcamp: Azure service fabric
PDF
Lowering the risk of monolith to microservices
PPTX
Tokyo Azure Meetup #5 - Microservices and Azure Service Fabric
PPTX
Atlanta Microservices Day: Istio Service Mesh
PDF
KrakenD API Gateway
PPTX
Continuous delivery by sergey seletsky
PDF
THEFT-PROOF JAVA EE - SECURING YOUR JAVA EE APPLICATIONS
PPTX
Blockchain on AWS
PDF
20160317 lagom sf scala
Microservices with Spring
Come for the traffic management, stay for the security
Microservices Antipatterns
Tokyo Azure Meetup #6 - Azure Monthly Update - June
REST vs. Messaging For Microservices
Microservices Journey Fall 2017
Microservices with Spring Boot
Tokyo Azure Meetup #4 - Build 2016 Overview
Microservices and Integration: what's next with Istio service mesh
Tech Talks Microservices
Istio: solving challenges of hybrid cloud
Global Azure Bootcamp: Azure service fabric
Lowering the risk of monolith to microservices
Tokyo Azure Meetup #5 - Microservices and Azure Service Fabric
Atlanta Microservices Day: Istio Service Mesh
KrakenD API Gateway
Continuous delivery by sergey seletsky
THEFT-PROOF JAVA EE - SECURING YOUR JAVA EE APPLICATIONS
Blockchain on AWS
20160317 lagom sf scala
Ad

Viewers also liked (20)

PDF
Modern Software Architecture - Cloud Scale Computing
PDF
Microservices in Scala: Play Framework
PDF
Software Architecture for Cloud Infrastructure
PDF
Microservices in Scala: Spray
PDF
Microservices 101: opportunities, dilemmas and problems
PDF
Truly agile company
PDF
Cognos vs Hyperion vs SSAS Comparison
PDF
Developing Event-driven Microservices with Event Sourcing & CQRS (gotoams)
PPT
Synchronous Communication
PPTX
Microservices approach for Websphere commerce
PPT
8051 microcontroller notes continuous
PDF
Duplicating data or replicating data in Micro Services
PDF
Practical Akka HTTP - introduction
PDF
Building and deploying microservices with event sourcing, CQRS and Docker (Be...
PPTX
Asynchronous and synchronous
PPTX
Php development with Docker
ODP
Git Workshop : Getting Started
PPTX
Information Design Web Planning Mockup
PPT
component based softwrae engineering Cbse
PPT
MockupBuilder
Modern Software Architecture - Cloud Scale Computing
Microservices in Scala: Play Framework
Software Architecture for Cloud Infrastructure
Microservices in Scala: Spray
Microservices 101: opportunities, dilemmas and problems
Truly agile company
Cognos vs Hyperion vs SSAS Comparison
Developing Event-driven Microservices with Event Sourcing & CQRS (gotoams)
Synchronous Communication
Microservices approach for Websphere commerce
8051 microcontroller notes continuous
Duplicating data or replicating data in Micro Services
Practical Akka HTTP - introduction
Building and deploying microservices with event sourcing, CQRS and Docker (Be...
Asynchronous and synchronous
Php development with Docker
Git Workshop : Getting Started
Information Design Web Planning Mockup
component based softwrae engineering Cbse
MockupBuilder
Ad

Similar to Microservices - opportunities, dilemmas and problems (20)

PPTX
Microservices vs monolithics betabeers
PDF
Microservices for java architects it-symposium-2015-09-15
PDF
Microservices for Java Architects (Madison-Milwaukee, April 28-9, 2015)
PDF
Microservices for java architects schamburg-2015-05-19
PDF
Writing microservices in java java one-2015-10-28
PDF
Writing microservices in Java -- Chicago-2015-11-10
PDF
Microservices Architecture
PDF
Microservices for Architects - Atlanta 2018-03-28
PPTX
Microservices-101
PDF
Microservice-based software architecture
PDF
µServices Architecture @ EPAM WOW 2015
PDF
Microservices for Java Architects (Chicago, April 21, 2015)
PDF
Modern software architectures - PHP UK Conference 2015
PDF
The working architecture of NodeJS applications, Виктор Турский
PDF
The working architecture of node js applications open tech week javascript ...
PDF
09-01-services-slides.pdf for educations
PDF
Service-Oriented Design and Implement with Rails3
PPTX
05 microservices microdeck
PDF
API’s and Micro Services 0.5
ODP
Monolithic to Microservices Architecture - STM 6
Microservices vs monolithics betabeers
Microservices for java architects it-symposium-2015-09-15
Microservices for Java Architects (Madison-Milwaukee, April 28-9, 2015)
Microservices for java architects schamburg-2015-05-19
Writing microservices in java java one-2015-10-28
Writing microservices in Java -- Chicago-2015-11-10
Microservices Architecture
Microservices for Architects - Atlanta 2018-03-28
Microservices-101
Microservice-based software architecture
µServices Architecture @ EPAM WOW 2015
Microservices for Java Architects (Chicago, April 21, 2015)
Modern software architectures - PHP UK Conference 2015
The working architecture of NodeJS applications, Виктор Турский
The working architecture of node js applications open tech week javascript ...
09-01-services-slides.pdf for educations
Service-Oriented Design and Implement with Rails3
05 microservices microdeck
API’s and Micro Services 0.5
Monolithic to Microservices Architecture - STM 6

Recently uploaded (20)

PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
PPTX
L1 - Introduction to python Backend.pptx
PDF
System and Network Administration Chapter 2
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
DOCX
The Five Best AI Cover Tools in 2025.docx
PPTX
Essential Infomation Tech presentation.pptx
PDF
AI in Product Development-omnex systems
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
history of c programming in notes for students .pptx
PDF
Complete React Javascript Course Syllabus.pdf
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
System and Network Administraation Chapter 3
How Creative Agencies Leverage Project Management Software.pdf
Design an Analysis of Algorithms II-SECS-1021-03
Design an Analysis of Algorithms I-SECS-1021-03
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Materi-Enum-and-Record-Data-Type (1).pptx
L1 - Introduction to python Backend.pptx
System and Network Administration Chapter 2
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
The Five Best AI Cover Tools in 2025.docx
Essential Infomation Tech presentation.pptx
AI in Product Development-omnex systems
Upgrade and Innovation Strategies for SAP ERP Customers
history of c programming in notes for students .pptx
Complete React Javascript Course Syllabus.pdf
Materi_Pemrograman_Komputer-Looping.pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Which alternative to Crystal Reports is best for small or large businesses.pdf
System and Network Administraation Chapter 3

Microservices - opportunities, dilemmas and problems

  • 1. Microservices in Scala workshop by Iterators by Jacek Głodek, Łukasz Sowa and Andrzej Michałowski
  • 2. Questions we try to answer today: • What are microservices? • What's the difference between them vs monolithic architectures? • What are the different flavours of microservices? • How to use Spray.io, Play and Akka to do microservices?
  • 3. Agenda • Short introduction to microservices • Spec of our system • "MS backbone - simple microservices with spray.io" talk • Auth and url collection microservices • "Asynchronous views and web services with Play and Akka" talk • Image fetching — reactive deffered job — Play with websockets • "Eventsourcing - total data immutability with akka persistence" talk • Voting made with event sourcing • Ops, testing and monitoring • Summary
  • 4. Architectures and practices What architectures are we talking about?! Don't think MVC, think MVC web-app run on multiple nodes with load-balancing, memcached cache and Postgres db. What practices are we talking about?! Think TDD, BDD, SOLID, etc.
  • 5. Code and code-base architecture and practices • programming paradigms • TDD, SOLID, BDD, etc. • Folder structure • Object naming conventions • Separation of concerns • Sharing data in threads
  • 6. Distributed system architecture • Interfaces, protocols and contracts between modules • System modules • APIs • Deployment strategy • Non-functional guarantees
  • 7. “Microservices” is a vague term • multiple small apps with REST/HTTP interface, • multiple small apps with deferred message processing • multiple single-file apps with less than 100 lines of code • multiple small apps possibly written in different languages communicating with each other
  • 8. Microservices • small single-purpose apps with bounded domain enabling polyglot programming + add your favourite ingredients + differences from monolithic architecture © Marivlada | Dreamstime Stock Photos & Stock Free Images
  • 9. Microservices vs Monolithic architecture Deployment units Monolith Microservices
  • 10. Microservices vs Monolithic architecture Deployment strategy Monolith Microservices
  • 11. Microservices vs Monolithic architecture Coupling Monolith Microservices • global variables • messages • function calls • data structures • shared memory • multiple levels of indirection managed with • SOLID, encapsulation and other practices • dependency injection, etc. • different protocols • shared DB’s • shared message queues managed with • contracts
  • 12. Microservices vs Monolithic architecture Interfaces vs Contracts Monolith Microservices • written with code and shared interfaces within code packages and libraries • checked by tests or compilers (?) • type validations • api calls defined by the language • encapsulation, single-responsibility rule, etc. Problems: • meta-programming, monkey-patching, global state and workarounds. • spoken / unspoken • should be defined on “paper” • defined by protocols, and technologies used, like: • http, websockets, RPC, rabbitMQ, shared MongoDB or Redis, etc. ) Problems: • changing contract or having no contract requires changing multiple services. • multiple API versions without easy solution for validating consistency
  • 14. Small single purpose code • Low complexity • No code-level coupling with other modules • “this big” or one hundred lines of code • Easy to rewrite • Rewrite instead of refactor • Easy to spot inputs and outputs • Still requires readable logic
  • 15. Relevant metrics • Measuring business performance using relevant metrics • Visualisation • Ex. Kamon, custom charts Ex: • forms processed, • mails sent, • PDF invoices generated • performance metrics: • response times • queue sizes • ex. New Relic, etc.
  • 16. Continuous deployment with hot swapping Having all the metrics: • You can deploy continuously • You can test the service by deploying new and old versions concurrently. • Given enough fail-safety contracts, you can test in production • One service down shouldn’t break whole architecture
  • 19. Problems and Dilemmas • synchronous and asynchronous processing • guarantees and SLAs • shared and private databases • making layers of micro services • bare-metal vs platforms • data-driven systems, eventsourcing and real-time messaging
  • 20. Synchronous vs Asynchronous processing Synchronous processing • immediate responses • fast and hard failure • “asking” • request timeouts • problematic to debug series of request Ex. chain of HTTP request and getting 200 Success response Asynchronous processing • posting jobs to be processed • tell don’t ask • fire and forget • need of pooling or waiting for response • longer jobs • failures can be recovered from! Ex. uploading a video file to be processed and getting “Video uploaded successfuly” response.
  • 21. Guarantees and SLA’s Is clicking like button same as performing bank transfer? Do we really need full ACID DB for holding chat messages? Will it perform fast enough to serve thousand of clients concurrently without building whole cluster of DB’s? 100% consistency and synchronicity is not possible to achieve in distributed system without introducing system wide locks. System-wide locks affect performance a lot, while we try to achieve reactive and scalable system. In microservices we can keep different parts of system with different guarantees and different approaches
  • 22. Shared vs private databases Shared database • pretty strong contract • convenient for simple domain problems • easier to maintain • problems: • coupling too many services, too deeply. • can become performance bottle-neck Private databases • useful for decoupling and reuse • useful for performance • useful for embedding in microservices that abstract complicated domain models • difficult to maintain, although can many databases can work on single db cluster/instance. • useful for giving microservice authority over some data • problems: • data sharding
  • 23. Layers of micro services frontend, public facing micro services, background workers and services
  • 24. Layers of micro services frontend issues • CORS (Cross Origin Resource Sharing) • Rendering of HTML: server-side or in javascript • Moving caches to CDN • Keeping modularity and reusability also on the frontend side • One backend microservice failure shouldn’t break whole frontend.
  • 25. Layers of micro services user facing services issues • CORS • Versioning of API • Authentication • Caching • Loadbalancing • Security
  • 26. Layers of micro services internal services • Security • Scalability • Monitoring for failures • Keeping the data consistent • Garbage-in garbage-out
  • 27. Platform abstraction level bare-metal servers vs platforms Higher level framework = more difficult polyglot programming + easier maintenance + possible code sharing + more tight coupling opportunities
  • 28. Stateful databases vs eventsourcing Stateful databases • State stored in the database • Ex. “John has $3122 USD on his account” • Transactions and locks that enable us to mutate the state Eventsourcing • No state just events. • Ex. “John got spent $12 USD” • State is inferred from the past events… • Every situation can be replayed! • Events are immutable = no problem with locking, etc. We can also not care about keeping the data at all.
  • 29. … and other dilemmas. But…
  • 30. Why not mix all the approaches?
  • 31. Can sole database be a microservice?
  • 32. Must microservice be based on REST interfaces?
  • 33. How would you model microservices for the last system you developed?
  • 34. That’s it for the intro Thanks! jacek@theiterators.com
  • 35. Summary Microservices come in different flavours:! sync, async, rest, mq, databases, events, hard and easy guarantees, with private and shared databases, based on bare-metal machines and high level platforms. © Marivlada | Dreamstime Stock Photos & Stock Free Images
  • 36. Summary Spray is great foundation: for simple HTTP services for connecting with awesome Akka processing framework with great directives for strictly defining what requests get processed with great marshalling and serialisation who make simple easy and abstractable
  • 37. Summary Play is has some useful elements: ! nice routing DSL, nice controller with Action composing nice Websockets with Akka actors lots of libraries to integrate to big boilerplate
  • 38. Summary Akka is great for messaging, makes concurrent programming easy! ! Actors are not threads Messages and Questions with timeouts Scheduling Watch not to make bloated — keep it single purpose
  • 39. Summary Eventsourcing ! ! Don’t store mutable state Store immutable events Rebuild state by processing the past events Akka persistance stores the events for you in a journal of choice (Mongo, Redis, Postgres, Maria, Mysql)
  • 40. What haven’t we talked about ! JVM microframeworks — Finagle, etc. Frontend — how to keep modularity, where to generate HTML, how to handle caching. Monitoring — health checks and metrics (spray directives?) and monitoring front end DevOps — How to configure loadbalancers, CORS, handling configuration and discovery of microservices, prepare auto-scaling, and handling situations when services fail, or how to make hot swap deployments.
  • 41. Thanks! Łukasz Sowa @luksow lukasz@theiterators.com Jacek Głodek @jacekglodek jacek@theiterators.com