~/talk

Practical Eff Monad For Micro-services

Talkat Scala Italy 2017 · on Saturday, 2017-05-13· [scala]
slides:none on file

Built a small article microservice at Zando that wires components with constructor injection using case classes and implicit Reader instances generated by the grafter macros (shapeless-based), removing manual DI. Uses http4s/rou for routes, supports many async backends (Future, Monix/Task, Twitter), and models effects (task, logged, flow ID) with the F monad. Integration and testing use Kiama tree rewriting to swap mocks and enforce singletons; components stay lazy via cats Eval. Approach is production-proven and works for rapid merchant onboarding.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:26Zando's microservice context
  3. 3:15Article service requirements
  4. 5:01Component-based design approach
  5. 6:26Constructor injection with case classes
  6. 8:57Reader monad for dependency wiring
  7. 9:41Automating wiring with Shapeless
  8. 11:47Building the application graph
  9. 12:28HTTP server and route structure
  10. 13:53Interfaces and implementations
  11. 15:17Default implementations and configuration
  12. 16:20Library integration and readers
  13. 18:05Unit testing with constructor injection
  14. 18:46Integration testing with tree rewriting
  15. 21:55Handling singletons in the graph
  16. 23:21Lazy evaluation and resource management
  17. 24:45Starting and stopping the application
  18. 26:32Summary of component design
  19. 27:35Introduction to the F monad
  20. 29:19Encoding effects with F
  21. 31:05Interpreting F computations
  22. 32:29Practical effects in components
  23. 33:32Flow ID effect explained
  24. 35:20Logging effect and interpreters
  25. 36:48Testing logging effects
  26. 38:14Applicative concurrency for microservices
  27. 39:18Async effects support
  28. 40:42Reader monad vs component-based DI
  29. 41:24Common mistakes with F monad
  30. 42:27Error handling strategies
  31. 44:31Avoiding DSL effects
  32. 45:55Component vs effect modeling
  33. 47:40Conclusion and takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.