Skip to content

Conversation

StephenCathcart
Copy link
Contributor

Added support for Bolt 5.8, which introduces a couple of useful features. The server now echoes back the resolved home/default database when starting a transaction, along with a connection hint indicating whether server-side routing (SSR) is enabled. If SSR is on, the echoed database can be used with an optimistic home database cache to predict a client-side route (optimistic routing), falling back to SSR if the guess is wrong. This can eliminate a round-trip, but only if all the following conditions are met:

  • Server-side routing (SSR) is enabled
  • Server supports Bolt 5.8
  • A brand-new session (not yet used) starts its first transaction (auto-commit or explicit) without an explicitly set target database

@StephenCathcart StephenCathcart merged commit 41d6c1b into neo4j:5.0 Feb 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants