zlacker

[parent] [thread] 3 comments
1. larodi+(OP)[view] [source] 2021-06-12 10:16:47
yes, do you really need PDF convertors when you can have them as PostgreSQL extensions.

the point (ok, one point of many) of REDIS is that it is not the main DB so you can have a sense of security and decoupling in the architecture. Besides - there is no silver bullet for all things. While you can have your app do everything with PostgreSQL (and much more with Oracle, something people dislike it about), the fact itself does not mean is a good design decision or is a more stable decision.

Because when you have redis for sessions, kafka for event streams, postgre (or else) for data storage - you have components that can fail separately and thus the system degrades gracefully.

replies(1): >>xupybd+U
2. xupybd+U[view] [source] 2021-06-12 10:25:28
>>larodi+(OP)
Yes but have you built a tool for the job or a Rube Goldberg machine?

Complexity comes at a huge cost. Only add it when the benefits out weigh the costs.

You could start out building a product that could scale to millions of uses overnight. But if you do that you've spent months building something with no users. You could have been in the market already, building revenue already. Your requirements will change as you find your market fit and you'll need to change things. The less you have built the easier it is to change. Why not leave the million user capabilities until you actually need it?

replies(1): >>berkes+53
◧◩
3. berkes+53[view] [source] [discussion] 2021-06-12 10:49:21
>>xupybd+U
> Yes but have you built a tool for the job or a Rube Goldberg machine? > Complexity comes at a huge cost. Only add it when the benefits out weigh the costs.

Im honestly unsure if you mean this as opposing "doing everything in Postgres" or as opposing "throw more services on the stack".

Because both are true for the statements. You have that complexity, regardless of where you implement it. Either you are building the rube-goldberg machine inside of postgres out of modules, config and SQL or outside of postgres with additional services.

The only way to really solve this is to avoid building that RG machine in the first place. In this case: don't have queues. In practice that probably means introducting complexity elsewhere, though.

replies(1): >>xupybd+tX
◧◩◪
4. xupybd+tX[view] [source] [discussion] 2021-06-12 19:47:14
>>berkes+53
Most web apps I've worked on have had queues in the database. The operational simplicity of only having a database has far outweighed the code complexity of using the relational database as a queue. However the performance would not have scaled. Luckily the performance was well above peak load of the actual systems.
[go to top]