Skip to content

Instantly share code, notes, and snippets.

@bobthemighty
Last active November 8, 2016 09:48
Show Gist options
  • Save bobthemighty/4e48af0deb17233fca8174739d5ef540 to your computer and use it in GitHub Desktop.
Save bobthemighty/4e48af0deb17233fca8174739d5ef540 to your computer and use it in GitHub Desktop.
Comms-todo
  • Connect to eventstore using consul for discovery
    • Do you want to use Consul-template or a consul client for this? CT is going to be easier for AtomicPuppy, I think.
  • Read an event with atomicpuppy and log it
    • Suggest starting with the heartbeat message that we already use for ERP and Availability.
  • Restart the app on SIGHUP
  • Set up proper json logging using the msg_id and msg_type fields
  • Metric: Eventstore response code
  • Metric: Eventstore latency
    • These two may not be possible without changing AtomicPuppy, in which case we should probably not put them in scope.
  • Metric: Event processing time
  • Metric: Event counter.
  • Set up a healthcheck endpoint
  • Run Bottle or Falcon or similar in the same process as your eventstore reader.
  • Return 200 OK if the app is configured correctly, with the last recorded value of each metric.
  • Set up a Jenkins build
  • Write a playbook for deployment
  • Ship it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment