| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Thanks! I like the idea in general. The only concerns I have are:
|
Sorry, something went wrong.
Improve connection visibility and debugging. Setting client names allows operators to identify which application a connection belongs to using CLIENT LIST. CLIENT SETINFO follows Redis best practices for client libraries, providing library name and version metadata for monitoring. Signed-off-by: Ernesto Alejandro Santana Hidalgo <ernesto.alejandrosantana@gmail.com>
|
Hi @michael-grunder, thanks for the feedback, having this feature for short time connections is not useful so we could skip those. Let me know your thoughts about it +-----------------------+
| START HANDSHAKE |
+-----------+-----------+
|
v
Is Connection Persistent?
|
NO ---+--- YES
| |
| v
| +-----------------------------------------------+
| | Build & Send "HELLO 2" Command |
| | (Includes AUTH & SETNAME as arguments) |
| +-----------------------+-----------------------+
| |
| v
| Response is okay?
| |
| NO ---------+--------- YES
| | |
| v v
| +---------------------+ +---------------------+
| | FALLBACK | | REDIS 6+ |
|-> | (Legacy Logic) | | (Modern Logic) |
+----------+----------+ +----------+----------+
| |
v v
Has Password? Parse Server Info
/ \ (server, version)
NO YES |
| | |
| v |
| Send AUTH cmd |
SUCCESS <---+-- OK? <-------+ |
^ | | |
| | NO --> FAILURE |
| | |
| v |
| Has Client Name? |
| / \ |
| NO YES |
| | | |
| | v |
+--+ Send CLIENT SETNAME |
| | |
| v |
+------- OK? <---+ |
/ \ |
NO YES |
| \ |
| \ v
FAILURE SUCCESS
|
Sorry, something went wrong.
|
Yeah a lot of that makes sense. Persistent connections can be expected to live longer. The absolute safest choice would be to gate it behind an option, but I'll play around with it over the weekend. |
Sorry, something went wrong.
|
Hi @michael-grunder any news on this one?? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
While it's possible to set the client name with the current api from php, it will set the client name on each execution from the php side, moving it to the lib in self could make it more reliable and easy to use.
A new status for the connections, REUSED will help to track the lifecycle of the connection, the new HELLO could be useful to implement RESP 3 or Availability Zone affinity for Valkey
CLIENT SETINFO follows Redis best practices for client libraries, providing library name and version metadata for monitoring.