zlacker

[parent] [thread] 3 comments
1. NavinF+(OP)[view] [source] 2021-12-18 01:41:10
Oh that happens fairly often. In fact, some message will be lost every time your queue server reboots due to a power outage, PSU failure, kernel panic, OOM, etc. (Unless it spends almost all of its time idle in which case I guess no messages will be in flight)

You’re guaranteed to break the invariant sooner or later so you end up with all the usual complexity of keeping stuff in sync.

replies(1): >>daenz+A
2. daenz+A[view] [source] 2021-12-18 01:46:02
>>NavinF+(OP)
Your queue server rebooting is completely orthogonal to whether the application submitting the message can do so atomically or not. Use a cloud service if you care about durability.

Edit>> I see you edited your post after I responded. None of those scenarios qualify as "fairly often."

replies(1): >>VWWHFS+471
◧◩
3. VWWHFS+471[view] [source] [discussion] 2021-12-18 15:01:50
>>daenz+A
Wish we would stop saying "use a cloud service" for everything. People can and do operate their own hardware, manage their own databases, and build and maintain their own application stacks. I don't know how we got to this point of learned helplessness where now we just have to use cloud providers for everything.
replies(1): >>daenz+6b4
◧◩◪
4. daenz+6b4[view] [source] [discussion] 2021-12-19 18:28:10
>>VWWHFS+471
It's not learned helplessness to avoid re-inventing the wheel. At the end of the day, the goal is to deliver value to customers, not invent a queueing system, unless your company's product is queueing systems.
[go to top]