-
Notifications
You must be signed in to change notification settings - Fork 72
Adds a clients overview page #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9d91008
8328c7b
fbd95a9
8cbc1bd
19e54c1
77c1ca4
020fa88
8e69fbc
e0ba0c3
2509c0d
1c9a086
310dd7d
9f99ae9
c1421e1
6afaef3
be71966
57a7e33
2e29d04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,10 +33,10 @@ jobs: | |
| repository: valkey-io/valkey | ||
| path: valkey | ||
|
|
||
| - name: Init commands and topics | ||
| - name: Init commands, topics and clients | ||
| run: | | ||
| cd website | ||
| ./build/init-topics.sh ../valkey-doc/topics | ||
| ./build/init-topics-and-clients.sh ../valkey-doc/topics ../valkey-doc/clients | ||
| ./build/init-commands.sh ../valkey-doc/commands ../valkey/src/commands | ||
| - name: Build only | ||
| uses: shalzz/[email protected] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| +++ | ||
| title = "Client Libraries" | ||
| template = "client-list.html" | ||
| [extra] | ||
| recommended_clients_paths = [ | ||
| "/python/valkey-GLIDE.json", | ||
| "/python/valkey-py.json", | ||
| "/node.js/valkey-GLIDE.json", | ||
| "/node.js/iovalkey.json", | ||
| "/java/valkey-GLIDE.json", | ||
| "/java/valkey-java.json", | ||
| "/go/valkey-GLIDE.json", | ||
| "/go/valkey-go.json", | ||
| "/php/phpredis.json", | ||
| "/php/predis.json", | ||
| ] | ||
|
|
||
| client_fields =[ | ||
| "name", | ||
| "language", | ||
| "read_from_replica", | ||
| "smart_backoff_to_prevent_connection_storm", | ||
| "pubsub_state_restoration", | ||
| "cluster_scan", | ||
| "latency_based_read_from_replica", | ||
| "AZ_based_read_from_replica", | ||
| "client_side_caching", | ||
| "client_capa_redirect", | ||
| "persistent_connection_pool" | ||
| ] | ||
|
|
||
| +++ | ||
|
|
||
| This page offers an overview of recommended Valkey clients for various programming languages. A table of advanced features supported by the respective clients is provided, highlighting the unique advantages of one client over another. | ||
|
|
||
| This page includes only clients which are regularly tested and recommended. However, it's important to note that other clients that support Redis OSS version 7.2 are compatible with Valkey 7.2 and above. To add your client to the list, please refer to [this link.](https://github.com/valkey-io/valkey-doc/blob/main/clients/README.md) | ||
|
|
||
| <!-- split --> | ||
|
|
||
| Advanced Features Overview | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of this seems duplicated from the valkey-doc client readme. Maybe we should have an advanced client feature topic and then import it here, so we aren't duplicating it? We can fast follow up with that if you agree, it's not a blocker to merge.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean an actual topic in docs/topics? Or just dividing the docs/clients README into a separate client feature markdown in the same folder, that we will refer to from the docs README as well? |
||
| ----- | ||
|
|
||
| 1. **Read from Replica** - The ability to read data from a replica node, which can be useful for load balancing and reducing the load on the primary node. This feature is particularly important in read-heavy applications. | ||
|
|
||
| 2. **Smart Backoff to Prevent Connection Storm** - A strategy used to prevent connection storms by progressively updating the wait time between retries when attempting to reconnect to a Valkey server. This helps to reduce the load on the server during topology updates, periods of high demand or network instability. | ||
|
|
||
| 3. **PubSub State Restoration** - The ability to restore the state of Pub/Sub (publish/subscribe) channels after a client reconnects. This feature ensures that clients can continue receiving messages after disconnections or topology updates such as adding or removing shards, for both legacy Pub/Sub and sharded Pub/Sub. The client will automatically resubscribe the connections to the new node. The advantage is that the application code is simplified, and doesn’t have to take care of resubscribing to new nodes during reconnects. | ||
|
|
||
| 4. **Cluster Scan** - This feature ensures that the user experience and guarantees for scanning a cluster are identical to those for scanning a single node. The SCAN function operates as a cursor-based iterator. With each command, the server provides an updated cursor, which must be used as the cursor argument in subsequent calls. A complete iteration with SCAN retrieves all elements present in the collection from start to finish. If an element exists in the collection at the beginning and remains until the end of the iteration, SCAN will return it. Conversely, any element removed before the iteration begins and not re-added during the process will not be returned by SCAN. A client supporting this feature ensures the scan iterator remains valid even during failovers or cluster scaling (in or out) during the SCAN operation. | ||
|
|
||
| 5. **Latency-Based Read from Replica** - This feature enables reading data from the nearest replica, i.e., the replica that offers the best latency. It supports complex deployments where replicas are distributed across various distances, including different geographical regions, to ensure data is read from the closest replica, thereby minimizing latency. | ||
|
|
||
| 6. **AZ-Based Read from Replica** - This feature enables reading data from replicas within the same Availability Zone (AZ). When running Valkey in a cloud environment across multiple AZs, it is preferable to keep traffic localized within an AZ to reduce costs and latency. By reading from replicas in the same AZ as the client, you can optimize performance and minimize cross-AZ data transfer charges. For more detailed information about this feature and its implementation, please refer to [this link.](https://github.com/valkey-io/valkey/pull/700) | ||
|
|
||
| 7. **Client Side Caching** - Valkey client-side caching is a feature that allows clients to cache the results of Valkey queries on the client-side, reducing the need for frequent communication with the Valkey server. This can significantly improve application performance by lowering latency, reducing the network usage and cost and reducing the load on the Valkey server. | ||
|
|
||
| 8. **`CLIENT CAPA redirect` Support** - The `CLIENT CAPA redirect` feature was introduced in Valkey 8 to facilitate seamless upgrades without causing errors in standalone mode. When enabled, this feature allows the replica to redirect data access commands (both read and write operations) to the primary instance. This ensures uninterrupted service during the upgrade process. For more detailed information about this feature, please refer to [this link.](https://github.com/valkey-io/valkey/pull/325) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are multiple links to PRs. This is a mistake. We should link to documentation, not to PRs.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @liorsve Can you take a look? I was okay referencing PRs, but I'm fine point to actual documentation too.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it's not a disaster. It's just better to link to the docs. The docs are user facing. The PRs are developer facing.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @madolson @zuiderkwast
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the docs are not very good for this feature. We can keep the link to the PR until we have improved the documentation. Here is what I found and some ideas:
|
||
|
|
||
| 9. **Persistent Connection Pool** - This feature enables the Valkey client to maintain a pool of persistent connections to the Valkey server, improving performance and reducing overhead. Instead of establishing a new connection for each request, the client can reuse existing connections from the pool, minimizing the time and resources required for connection setup. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| {% import "macros/docs.html" as docs %} | ||
|
|
||
| {% block main_content %} | ||
| <hr/> | ||
| <h2 >Feature Comparison Table</h2> | ||
|
|
||
| <div class="table-container"> | ||
| <table > | ||
| <thead> | ||
| <tr class="table-header"> | ||
| {% for header in client_fields %} | ||
| <th class="table-header-cell">{{ header | replace(from="_", to=" ") | title | replace (from= "Az", to= "AZ") }}</th> | ||
| {% endfor %} | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| {%- for path in client_paths %} | ||
| {% set json_data = load_data(path = docs::client_json_path(client_path= path), format="json") %} | ||
| <tr class="table-row {% if loop.index is even %}even-row{% else %}odd-row{% endif %}"> | ||
| {% for field in client_fields %} | ||
| <td class="table-cell"> | ||
| {% if field not in ["name", "language"] %} | ||
| {{ docs::boolean_to_checkmark(value=json_data[field]) }} | ||
| {% else %} | ||
| {{ json_data[field] }} | ||
| {% endif %} | ||
| </td> | ||
| {% endfor %} | ||
| </tr> | ||
| {%- endfor %} | ||
| </tbody> | ||
| </table> | ||
| </div> | ||
| {% endblock main_content %} |
Uh oh!
There was an error while loading. Please reload this page.