Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging service that writes into S3 #16

Open
mtnygard opened this issue Sep 26, 2014 · 0 comments
Open

Logging service that writes into S3 #16

mtnygard opened this issue Sep 26, 2014 · 0 comments

Comments

@mtnygard
Copy link
Contributor

The current log service writes to local files, which are loaded into Datomic at the end of the simulation run. This is one of the things that requires every simulation runner to be a Datomic peer.

It would be helpful to allow a substitute log service that writes through to S3. This requires the following changes:

  1. Create the service and attach it to the sim.
  2. Assign S3 object IDs to each runner at sim startup time.
  3. Construct the service at sim-execution time. It must inject a function that accepts a data structure and serializes it to the S3 file for that runner.
  4. Load S3 EDN files into Datomic at sim completion.

The recording function must be a drop-in replacement for the current recorder. It must be possible to switch this out without changing the action functions.

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

No branches or pull requests

1 participant