LazyGuard
LazyGuard
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
@reacher I see, that's waht I am saying. Here the main aim is to desynchronize POST requests and procesing needed for each request. The desynchronization can be perfectly done using an in-process tool, no need for kafka whatsoever. The lead dev is not convinced :/
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
@reacher will having kafka solve any performance issues here ? If the requests frequency becomes higher for example
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
@reacher 🫠 : : : : : : : 🔮🔮 In what cases would kafka make more sense according to you ?
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
@Pobiega I am a little bit confused because as far as I know Quartz is not a pub-sub system
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
@reacher 🫠 : : : : : : : 🔮🔮 just for my understanding, why did you say that kafka has no place here, what are the arguments behind ?
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
Oh I didn't know that I can do it with Quartz !
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
I see, thank you
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
@Pobiega in zero-mq it's in-memory but it uses sockets 🤔 ?
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
I see, I love the idea of schedling after startup, I've never thought of it this way
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
okay so it's introducing an in-memory pub/sub message but keeping the pooling to activate in case of emergencies right ?
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
yes right
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
it's in the internal system to which we send the requests (It's a third-party software).
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
@reacher This API is designed to handle requests for authorizing parking access, making the process straightforward for the client. Here’s how it works now: 1. The client sends a POST request to request parking access. 2. Upon receiving this request, we save it in the database with a status of "pending authorization" and immediately respond with a 200 OK as long as all required data is provided. 3. A background service regularly scans for requests marked as "pending authorization." For each of these, it sends a POST request to an internal system responsible for validating and authorizing parking access. 4.1. If the internal system call succeeds: The request status is updated from "pending authorization" to "authorized." 4.2. If the internal system call fails, a retry counter (stored in the db document) is incremented. The background service will retry the process later. 5. If the retry counter reaches a predefined limit, the system stops retrying, and the request remains unresolved. (we don't care about having places ot not, it's only a matter of authorization, we don't care about notifying clients, it's someelse problem)
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
Okay !
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
I do know how to "measure" those downsides
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
it's polling the db and sometimes it's empty because nothing is to e treated :/
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
this is what I did, I though of first saving the requests in the db, and, in the same-process, there is a background service constantly looking for unprocessed elements
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
I am limited to using libs here
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
yes but I can't The architectures would never approve this :/
52 replies
CC#
Created by LazyGuard on 12/13/2024 in #help
Which Architecture to Choose?
@Pobiega It's a coroporation :/ in-memory ub-sub like what ?
52 replies