Nitty Gritty Service Building
summary
Provides a concrete recipe for extracting a service from a Rails monolith: build a new payment API, dogfood a client packaged as a gem, and sever dependencies by extracting tables to a separate DB. Uses Active Model Serializers for stable payloads, wraps HTTP with Typhoeus for concurrent requests, and profiles with perf tools / stackprof to find hotspots (coupon calculator hogs ~21.5% of time, GC ~67%). Tests act as a contract and the extraction succeeds, cutting test suites and improving responsiveness.
AI-written summary · about
chapters (9)
- 0:00Start
- 0:16What Is a Service
- 1:43Faster Tests
- 6:39Multiple Objects per Request
- 8:54Client Models
- 9:20Rapid Prototyping
- 11:17Building a Communication Layer
- 13:37Sever Dependencies
- 15:29Improving the Performance
related talks
28mNitty Gritty Service Building
23mAbstracting a Service - A Case Study in Forward Thinking with SOA
33mServices and Rails: The Shit They Don't Tell You
36mAn Iterative Approach to Service Oriented Architecture
34mService Oriented Architecture at Square
28mServices and Rails: The Shit They Don't Tell You
40mMonoliths Between Microservices
27mIt Looks Like You're Writing A Service: Would You Like Help?
