Service Virtualization
on the Cheap
[email protected]
@EmanuilSlavov
Slide 2
Slide 2 text
3
hours
3
minutes
Slide 3
Slide 3 text
No content
Slide 4
Slide 4 text
Problems with 3rd party services
Unreliable Network
Throttling
Costly
Can’t Control Output
Slide 5
Slide 5 text
Service Virtualization
to the Rescue
Slide 6
Slide 6 text
Your Options
Slide 7
Slide 7 text
Record and Replay
Application
External Service
Storage
First Request Next Request
Slide 8
Slide 8 text
Pros Cons
Uses real recorded data
Refreshes automatically Returns only recorded data
Framework specific
Easy to setup for simple APIs Requires network
Slide 9
Slide 9 text
Stubs In The Code
Application
External Service
Internal Logic
Should
call the
real API
Should
fake the
request
Slide 10
Slide 10 text
No content
Slide 11
Slide 11 text
Pros Cons
No need for network
Access to internal app state Monolithic applications only
Cheap to setup
Do not cover low level code
May cause havoc in production