Local cache on shutdown

Issue #30 resolved
Flozza created an issue

When client shuts down and restarts, all information on flags is lost. It would be much better, if the client would save them locally and load them on the next start to restore the state of collected flags.

In case of a normal shutdown this is easy, but in case of an unusual shutdown (especially a SIGTERM), we might want to find a way to preserve this list as well. Suggestions on this are appreciated

Comments (3)

  1. Kevin Hamacher repo owner

    How about creating a seperate script which acts like a redis-server (so that you do not have any redis-dependencies) and will cache the flags until they are submitted?

    Edit: Since all signals except SIGKILL can be catched, a simple "write to file" should be enough. Nobody should sigkill the client ^^

  2. Log in to comment