Hi Alan, I remember someone suggesting using a RDBMS as the store for similar use case. For example you could take https://github.com/okumin/akka-persistence-sql-async plugin to write the messages to PostgreSQL, but declare the message and snapshot columns in the tables as JSONB rather than BYTEA. This may involve tweaking the plugin, but even so should be pretty straightforward. This way you could use postgres JSON capabilities to write SQL queries on your data https://www.postgresql.org/docs/9.5/static/functions-json.html I imagine it's easier than writing a custom tool for working with the flat files. Of course all this is moot if said tool already exist, and you are now trying to tweak Akka to produce event log in suitable format :)
Cheers, Rafał W dniu czwartek, 12 stycznia 2017 18:31:16 UTC+1 użytkownik Alan Burlison napisał: > > I have some fairly non-standard requirements for a persistence plugin > for a long-running lo-event-rate simulation - I can assume a shared > filesystem, the event rates will be low (10/sec max) and I'd like to use > the persistence files with external tools to analyse the event stream > from outside of the emulation. I'm considering using JSON in flatfiles > as the format, by writing my own persistence plugins. I haven't been > able to find such a plugin, does anyone know of one, and if not are > there any caveats I should particularly be aware of, other than the > usual atomicity/asynchronous ones? > > Thanks, > > -- > Alan Burlison > -- > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
