Skip to content

Instantly share code, notes, and snippets.

@sqrtofsaturn
Created November 18, 2015 05:22
Show Gist options
  • Save sqrtofsaturn/e02f0ea7571b75105688 to your computer and use it in GitHub Desktop.
Save sqrtofsaturn/e02f0ea7571b75105688 to your computer and use it in GitHub Desktop.
2015-11-18 Phxmobi outline

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment