Honey, I Shrunk Skynet: Composable Microservices, Mobile Devices, and IoT
Microservices
-
They are so hot right now
-
But why?
- They make your life easier
- They enforce separation of concerns
- They get your project finished faster (as long as you're disciplined!)
- They make your api cleaner
- You might not think you'll use the api in other ways at first, but it's there and easy to use when you need it.
- They reduce cognitive overhead for the project
- They are fun
-
Let's take a hands-on look. before/after
- Protocol adapters (Tentacle?)
-
Emergent Behavior meshblu, the monolithic application, can now be described as a simple relationship between microservices.
meshblu-core-dispatcher https://github.com/octoblu/meshblu-core-dispatcher/blob/master/job-registry.cson
meshblu-core-task-authenticate https://github.com/octoblu/meshblu-core-task-authenticate/blob/master/src/authenticate-task.coffee
-
So, how do we manage it? CoreOS
-
Blue/Green deploys
-
the-stack-services for examples.
- healthchecks
- register service
- actual service
-
deployinate-configurator
- generate these files
Amazon Lambda
- Restricted, but much easier.
-
On Mobile We can have a microservice architecture in-app! - We are experimenting with these. Don't trust us (yet!) - Microservices with Intents on Android - Tasker - Many of the same benefits that you get from server-side apps.