News for hackers. Stuff that matters.
Re:Rearchitecting: Redis to SQLite by CraigJPerry on Wednesday September 25, 2024 @11:09AM (#41648370)
What’s the use case for re-checking the same feature flag in a single session?

I can see why you need to check multiple different flags in a session and I understand the parent point about looking in SQLite for them (effectively a function call into a library in process address space rather than a call over the network for each flag).

Re:Rearchitecting: Redis to SQLite by quesera on Wednesday September 25, 2024 @12:04PM (#41648908)
Sorry, s/session/request/g; corrected above.

One example is a multistep transaction processing request. The feature flag could gate several branch points.

A memory-mapped SQLite file is great too, but the strategy I describe above is less code, quicker to implement, and should get you a very similar performance improvement.