Makhlab
TTCTheo's Typesafe Cult
•Created by Christos on 1/10/2025 in #questions
Storing Payment Status of Customer on the frontend
Yeah, react context is not persisted across refreshes and page page navigation, and yeah that’s what I meant everytime the app starts.
10 replies
TTCTheo's Typesafe Cult
•Created by Christos on 1/10/2025 in #questions
Storing Payment Status of Customer on the frontend
Depending on how secure you want your application to be, you can send a validation request to the server. I usually save it on the context. If you are ok with possibility of users seeing some paid components if they tamper with local storage, you can use local storage. Just make sure actual paid content and requests are verified with every request (https-only cookies are a good way). Otherwise, you can fetch the paid status in the context everytime the app starts.
10 replies
TTCTheo's Typesafe Cult
•Created by Sandip on 1/10/2025 in #questions
How to send messages to large number of people and is there ways for doing it
I think you can make use of a cache and a queue. In the cache, store the message, and when it’s “completed”, read it from the cache and push it on the queue. Listeners to the queue will send the notification (and probably eject the cached object). Perhaps this requires more system components than you might actually have in place.
16 replies