An example of how to manage global resources in a microservices world.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore +init Jun 30, 2017
LICENSE Initial commit Jun 29, 2017
README.md /types. +tenets. Jun 30, 2017
handler_ok.go +Middleware Jun 30, 2017
handler_panic.go +init Jun 30, 2017
main.go +init Jun 30, 2017
middleware.go +Middleware Jun 30, 2017
mw_stateful.go +Middleware Jun 30, 2017
mw_tester.go +init Jun 30, 2017
mw_trapper.go /types. +tenets. Jun 30, 2017
servicer.go +init Jun 30, 2017
svctx.go +init Jun 30, 2017

README.md

stateful

An example of how to manage global resources in a microservices world.

Tenets

  • Lazy dependencies
    • Start instantly without regard for dependent services' status.
    • i.e. All routes respond to requests as soon as the service is running.
  • Never exit/fail under any circumstance under the service's control.
  • Try to handle errors from dependent services graceful before propagating them.