You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let me summarise what it does since the docs are still in progress: In order to avoid DDOSsing the main database server, Flows attempts to either use a readonly, slave database or an asynchronous one (see #20), and has some modes about what kind the outgoing request is. The idea is to store outgoing request, then after responding to the current request, we visit IDs in that payload in anticipation of user's next request.
I suspect some developers may not be receptive to this, so in meta Flow fashion, let me preemptively ask: Can this concept be repurposed towards another end? Something the existing code can be adapted to. Please feel free to peruse https://github.com/nmeri17/Tilwa/tree/close-route-queue/nmeri/tilwa/tests/Integration/Flows to get a tentative idea of how they operate in real life (sans an actual redis queue). They are closest to what that section of the docs will look like.
If, on the other hand, you're absolutely on board with it, awesome! In that case, I have a few questions:
Can you suggest additional ways to improve the component as a whole?
The flows for each user is extracted, updated and stored again. Will you use redis tags, instead, to update the cache whenever a resource bearing that tag is updated? I couldn't come around this implementation detail but something tells me tags can be used to update caches in memory
This discussion was converted from issue #21 on June 18, 2022 12:08.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let me summarise what it does since the docs are still in progress: In order to avoid DDOSsing the main database server, Flows attempts to either use a readonly, slave database or an asynchronous one (see #20), and has some modes about what kind the outgoing request is. The idea is to store outgoing request, then after responding to the current request, we visit IDs in that payload in anticipation of user's next request.
I suspect some developers may not be receptive to this, so in meta Flow fashion, let me preemptively ask: Can this concept be repurposed towards another end? Something the existing code can be adapted to. Please feel free to peruse https://github.com/nmeri17/Tilwa/tree/close-route-queue/nmeri/tilwa/tests/Integration/Flows to get a tentative idea of how they operate in real life (sans an actual redis queue). They are closest to what that section of the docs will look like.
If, on the other hand, you're absolutely on board with it, awesome! In that case, I have a few questions:
The flows for each user is extracted, updated and stored again. Will you use redis tags, instead, to update the cache whenever a resource bearing that tag is updated? I couldn't come around this implementation detail but something tells me tags can be used to update caches in memory
Beta Was this translation helpful? Give feedback.
All reactions