Newest Questions
64,403 questions
0
votes
1
answer
26
views
Handling coupon refunds and partial refunds when coupon budgets are enforced via Redis counters
We are designing a coupon system with 300 request per second on redemptions, where updating global and per-user coupon counters directly in database within a transaction causes some contention and ...
-1
votes
0
answers
8
views
Best practice for implementing social login (Google, Facebook, GitHub) with frontend and backend [closed]
I want to implement social login (Google, Facebook, GitHub). What is the correct flow between the frontend, server, and provider?
Options:
Server as mediator: the frontend calls the server, the user ...
5
votes
4
answers
1k
views
How to achieve idempotent behavior when calling a third-party API that doesn’t support it?
I’m designing a service that interacts with a third-party API which does not guarantee idempotency. This API performs operations like creating or updating resources, but calling the same request ...
-1
votes
0
answers
36
views
How to design a system to integrate with a third-party service reliably? [closed]
Third-Party Service Integration
I am working on designing a system that integrates with a third-party service. The system needs to handle:
Sending requests/orders to the service
Tracking the status ...
0
votes
0
answers
55
views
Handling cache invalidation failures in dual-write scenarios(SQL + Redis) [closed]
I have an ASP.NET threads/comments type of app where:
Comments are stored in PostgreSQL
Thread comments are cached in Redis with long TTLs (days)
On adding a comment: save to DB, then invalidate ...
0
votes
3
answers
208
views
Automating application release process
I am developing a VB.NET desktop app on Visual Studio Community, using Github for version control (private repository), DigiCert to sign the binary (application install file), and Wordpress for the ...
0
votes
2
answers
61
views
Master Determination in Multiple Unit System
I'm currently designing an embedded system containing N identical units, where an arbitrary unit based upon power on sequencing is to become the master, to which the N-1 slaves will take commands from ...
-1
votes
0
answers
32
views
How to abstract data provision in django?
Say myModel's data should be populated from multiple third party providers llm/api data.
I want to avoid repeating the get_response logic in multiple models.
My current thoughts consist of inheriting ...
-1
votes
1
answer
172
views
+100
Building coupon redemption system with multiple counters
I’m designing a coupon redemption system where each coupon is active for a time range and provides a discount on the cart/product value. So when user places an order with the coupon user redeems that ...
0
votes
1
answer
81
views
Is there a recommended way to deploy and maintain an embedded firmware for multiple targets? [closed]
In the company that I work for, the team is struggling with how to maintain and deploy the core, the main firmware and other dependencies of our products. In our case, we have a family of products ...
0
votes
0
answers
72
views
How to handle period resets [closed]
So I have the following structure:
Campaign <--many-to-many--> buyers
Buyers --has Many--> resources
I want users to be able to set a resource cap on a particular Buyer-Campaign pair, so ...
4
votes
3
answers
240
views
Why put protocol implementation in an extension in Swift?
I have been working through the Apple SwiftUI/SwiftData tutorial Scorekeeper and noticed that they did something I wouldn't have considered, and don't know why they did it.
In the tutorial (in Section ...
4
votes
3
answers
181
views
How to organize multiple customized projects around a shared and evolving codebase?
I currently have around twenty GitHub repositories used by one group of developers. Each repository is a Spring Boot Java microservice.
I now want to open these repositories to a second group in order ...
2
votes
0
answers
196
views
To Soft Delete or not to Soft Delete? [closed]
I’ve worked with database schemas that often had a soft delete field indicator in tables (such as deleted_at, invalidated, and so on) to keep track of the deletion status of records.
It’s obvious that ...
-1
votes
5
answers
232
views
Do GML switch-case statements perform worse than function tables?
The reason I wanted to ask is because of some code from Undertale that is responsible for choosing which dialogue set to use. It works something like this:
switch (id) {
case 0:
msg[0] = &...