Highly reliable log / time series storage

In the application I'm working on, I need a data log with a record. That is, the application accumulates data in memory and can store all the data in memory. However, it must be preserved, make reasonable mistakes and allow backups.

Obviously, I could write an SQL database; Derby recalls simple embedding. I do not really like working with the SQL API (JDBC, but lipstick), and I do not need any queries, indexes, or other design. The entries disappear, and when I restart, I need to read them all.

Are there any other suitable alternatives?

+3
source share
2 answers

Try using a simple log file.

, () . write(), fsync(), ( , ), (). , .

. , . , , .

+3

( Oracle) Berkeley DB Java? " " . Docs DPL.

. .

(: BSD, .)

+1

Source: https://habr.com/ru/post/1795589/


All Articles