cityindex-attic / logsearch

[unmaintained] A development environment for ELK
Apache License 2.0
24 stars 8 forks source link

Evaluate migration to event sourcing for zero downtime blue green deployments #335

Closed sopel closed 10 years ago

sopel commented 10 years ago

This has been extracted from #321 and relates to epic #292 accordingly - I've mentioned this briefly only in a recent hangout and we skipped the discussion, because it will likely require significant architectural changes, but a recent data loss event during the currently disruptive weekly deployments suggests to at least evaluate soon whether our long term goal for zero downtime Blue Green Deployments and data backup/archiving could/should be addressed nicely by means of the Event Sourcing pattern.

I'll first update the extreme nutshell summary (there's much more to it, and as always a few issues as well):

The approach would be roughly as follows:

Obviously there are quite some caveats in practice (e.g. requiring maintenance mode for non event sourced data like dashboards etc.), but it is a valid and successfully employed pattern to thoroughly approach the issues we are facing and should at least be considered accordingly.

If that's something considered to be relevant right now already, I could try to summarize my slightly more elaborate thoughts around the pros and cons, but that's an effort in itself, so let's first discuss our resp. mid term goals/priorities in today's hangout.

sopel commented 10 years ago

We have agreed to discuss this as a mid to long term option and I'll summarize my thinking around the pros and cons (resp. tradeoffs) here and/or in a blog post within the next couple of weeks.

sopel commented 10 years ago

Closed as Incomplete due to not being actively evaluated right here, but being the mid-term goal now regardless - going forward, this will be discussed and hopefully implemented via https://github.com/logsearch/logsearch-boshrelease/issues/73.