4 ms·
But why would one use log as source of truth ? If the info logged is important for the business, probably it should be stored in a DB (say).
by sateesh 5y ago
But why would one use log as source of truth ? If the info logged is important for the business, probably it should be stored in a DB (say).
- endisneigh 5y agoLogs are stored in a database, just not usually a relational one.
- sateesh 5y agoTrue, logs do needs to be stored somewhere. What l meant was: if the info is so important for the business, that detail should be stored in a system that provides a longer durability than just logging it.
- endisneigh 5y agoThough I agree, I think the parents point is that you don’t necessarily know if it’s important so you have to have some general record keeping with respect to “activity”
- alex_sf 5y ago> just logging it. This is the misunderstanding here. With a sufficiently complex system, they are never 'just logs'.
- Aeolun 5y agoHmm, I think that anything you do not consider ‘just logs’ should be somewhere in your main database instead.
- jeffbee 5y agoThat's backwards. DBs you can lose because they can be reconstructed from the logs.
- sateesh 5y agoSeems we are referring to two different things. What you mention references DB journal logs, and my comment was about application logs (like debug, info, error message etc.)