Skip to content

moving fallback RPC section & hypersyc url change#725

Merged
keenbeen32 merged 2 commits intomainfrom
nb/docs-fix
Nov 10, 2025
Merged

moving fallback RPC section & hypersyc url change#725
keenbeen32 merged 2 commits intomainfrom
nb/docs-fix

Conversation

@nikbhintade
Copy link
Member

@nikbhintade nikbhintade commented Oct 24, 2025

Summary by CodeRabbit

  • Documentation
    • Added a new guide on configuring RPC fallback providers for resilience, failover, and high availability.
    • Reorganized Advanced HyperIndex content and retitled several sections for clarity (Hosting and Support; Alternative Data Sources).
    • Moved and simplified RPC fallback coverage with cross-references to the new guidance.
    • Updated HyperSync initialization example URL and fixed cross-references.

@vercel
Copy link

vercel bot commented Oct 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
envio-docs Ready Ready Preview Comment Nov 10, 2025 5:37am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 24, 2025

Walkthrough

Reorganized and relocated RPC fallback documentation from docs/HyperIndex/Advanced/hypersync.md into docs/HyperIndex/Advanced/rpc-sync.md, updated a hyperlink in docs/HyperIndex/overview.md to point to the new location, and corrected the HyperSync client example URL in docs/HyperSync/hypersync-usage.md. No code or runtime behavior changed.

Changes

Cohort / File(s) Change Summary
Hypersync docs edits & section renames
docs/HyperIndex/Advanced/hypersync.md
Renamed sections ("Availability and Support" → "Hosting and Support", "Alternatives" → "Alternative Data Sources"), removed the large RPC fallback resilience block and example config, and adjusted framing/wording around HyperSync guidance.
RPC fallback documentation added
docs/HyperIndex/Advanced/rpc-sync.md
Added "Improving resilience with RPC fallback" subsection under RPC Best Practices with guidance, benefits, an example showing multiple rpc entries marked for fallback, and version note (available from 2.14.0).
Overview link update
docs/HyperIndex/overview.md
Updated "Fallback RPC data sources" link target from /docs/HyperIndex/hypersync#improving-resilience-with-rpc-fallback to /docs/HyperIndex/rpc-sync#improving-resilience-with-rpc-fallback.
HyperSync usage example URL fix
docs/HyperSync/hypersync-usage.md
Changed HyperSync client initialization URL in example from https://ethereum.hypersync.xyz to https://eth.hypersync.xyz.

Sequence Diagram(s)

sequenceDiagram
  participant Indexer as Indexer
  participant PrimaryRPC as Primary RPC
  participant FallbackRPC as Fallback RPC(s)
  participant Watcher as Block Watcher

  rect rgb(240,248,255)
    Note right of Indexer: Normal flow
    Indexer->>PrimaryRPC: Request latest block / data
    PrimaryRPC-->>Indexer: Return block
  end

  rect rgb(255,245,235)
    Note right of Watcher: Fallback activation when primary misses blocks (>20s)
    Watcher->>PrimaryRPC: Detect missing block / timeout
    Watcher->>FallbackRPC: Query fallback providers (automatic failover)
    FallbackRPC-->>Indexer: Return block/data
    Indexer->>PrimaryRPC: Continue polling (primary may recover)
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Documentation-only changes, relocation and link updates across a few files.
  • Review focus: confirm moved content is complete and links/anchors are correct; verify the example RPC config formatting and the corrected URL.

Possibly related PRs

  • HyperIndex v2.21 #631: Addresses RPC fallback schema/config and related docs; strongly related to relocated RPC-fallback documentation.

Suggested reviewers

  • DenhamPreen
  • moose-code

Poem

🐰
I hopped through docs with gentle paws,
Moved fallbacks to a brand-new cause,
Links nudged neat, an endpoint hopped too,
Docs feel lighter — a springtime view!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title describes moving the fallback RPC section and updating HyperSync URL, which matches the core changes: RPC fallback content moved from hypersync.md to rpc-sync.md and HyperSync URL updated.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch nb/docs-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nikbhintade nikbhintade changed the title chore: moved fallback rpc section to correct page & hypersyc url change Reorg pages & hypersyc url change Oct 24, 2025
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it makes sense to move this here.

The rpc as a fallback is mostly to address a hypersync issue, so in my mind, it's more something that's shown for when you're reading the hypersync source doc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@moose-code thought it was somewhat confusing that this section was under hypersync. Since RPC fallback is more closely related to RPC as a data source, I moved that section to where it felt like a better fit. Also, having all RPC-related things in one place is better.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't agree. I think it's important for users understanding HyperSync to know that there is an option for an RPC fallback.

I am happy to be overruled here. I would suggest that you ask JJ to review this PR.

client = hypersync.HypersyncClient(
hypersync.ClientConfig(
url="https://ethereum.hypersync.xyz",
url="https://eth.hypersync.xyz",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@DenhamPreen
Copy link
Contributor

The pr title says reorg pages, do you mean rpc fallback or is there something missing from this pr

@nikbhintade nikbhintade changed the title Reorg pages & hypersyc url change Reorg fallback section & hypersyc url change Oct 24, 2025
@nikbhintade nikbhintade changed the title Reorg fallback section & hypersyc url change moving fallback RPC section & hypersyc url change Oct 24, 2025
@nikbhintade
Copy link
Member Author

@DenhamPreen I wanted to say reorganization of that particular section, not the pages. I have updated the title to "moving fallback RPC section"

Copy link
Member

@moose-code moose-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nikbhintade going to preapprove but just ask you add a small section back in the hypersync side that points towards this so users will find this if they look in hypersync or rpc

@nikbhintade
Copy link
Member Author

yeah, I will add that section

@nikbhintade
Copy link
Member Author

Added it.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d6762d7 and 00b3c9c.

📒 Files selected for processing (1)
  • docs/HyperIndex/Advanced/hypersync.md (1 hunks)
🔇 Additional comments (1)
docs/HyperIndex/Advanced/hypersync.md (1)

75-77: LGTM!

The section title change from "Availability and Support" to "Hosting and Support" accurately reflects the content, which focuses on Envio's infrastructure maintenance.

Comment on lines +83 to +85
### Alternative Data Sources

HyperSync data source is vendorlock-free. While HyperSync is **recommended for optimal performance**, you can always switch to RPCs without the need to change your indexer code. For information on configuring RPC-based indexing, visit the [RPC Data Source](/docs/HyperIndex/Advanced/rpc-sync.md) documentation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify link format consistency across documentation.

Line 85 uses a link with the .md extension: [RPC Data Source](/docs/HyperIndex/Advanced/rpc-sync.md). However, line 89 uses a similar link without the .md extension: [RPC Fallback](/docs/HyperIndex/rpc-sync#improving-resilience-with-rpc-fallback). Additionally, line 89 omits the Advanced/ directory segment. These inconsistencies could lead to broken links depending on your documentation platform's routing.

Verify that:

  1. Both links use consistent path formats (with or without .md extension and directory paths)
  2. The actual file location matches the referenced paths (confirm whether the file is docs/HyperIndex/Advanced/rpc-sync.md or docs/HyperIndex/rpc-sync.md)
  3. Both links will resolve correctly by checking your build output or documentation site

Run this script to verify the file exists and check link consistency:


🏁 Script executed:

#!/bin/bash
# Check if the RPC sync documentation file exists at expected locations
echo "=== Checking for rpc-sync.md file ==="
fd "rpc-sync.md" --type f

echo ""
echo "=== Checking for inconsistent link references in hypersync.md ==="
grep -n "rpc-sync" docs/HyperIndex/Advanced/hypersync.md

Length of output: 720


Fix broken link on line 89 in hypersync.md.

Line 89 references an incorrect path: [RPC Fallback](/docs/HyperIndex/rpc-sync#improving-resilience-with-rpc-fallback)

The file exists at docs/HyperIndex/Advanced/rpc-sync.md (confirmed), but line 89 omits the Advanced/ directory segment, resulting in a broken link. Update line 89 to: [RPC Fallback](/docs/HyperIndex/Advanced/rpc-sync.md#improving-resilience-with-rpc-fallback)

Line 85's link format is correct and should serve as the reference.

🤖 Prompt for AI Agents
In docs/HyperIndex/Advanced/hypersync.md around lines 83–85, the link to the RPC
fallback is pointing to the wrong path (missing the Advanced/ segment) and thus
breaks; update the referenced link target so it points to the correct file and
anchor by changing the href to
/docs/HyperIndex/Advanced/rpc-sync.md#improving-resilience-with-rpc-fallback so
it matches the actual file location.

Comment on lines +87 to +89
### Improving Resilience with RPC fallback

HyperSync data source is vendorlock-free. While HyperSync is recommended for optimal performance, you can always switch to RPCs without the need to change your indexer code. For information on configuring RPC-based indexing, visit the [RPC Data Source](/docs/HyperIndex/Advanced/rpc-sync.md) documentation.
For production deployments, it’s recommended to use HyperSync as the primary data source and have RPCs as fallback to improve reliability.You can read more about it in the [RPC Fallback](/docs/HyperIndex/rpc-sync#improving-resilience-with-rpc-fallback) section.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix spacing typo in line 89.

There's a missing space after the period: reliability.You should be reliability. You.

Apply this diff to fix the typo:

-For production deployments, it's recommended to use HyperSync as the primary data source and have RPCs as fallback to improve reliability.You can read more about it in the [RPC Fallback](/docs/HyperIndex/rpc-sync#improving-resilience-with-rpc-fallback) section.
+For production deployments, it's recommended to use HyperSync as the primary data source and have RPCs as fallback to improve reliability. You can read more about it in the [RPC Fallback](/docs/HyperIndex/rpc-sync#improving-resilience-with-rpc-fallback) section.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### Improving Resilience with RPC fallback
HyperSync data source is vendorlock-free. While HyperSync is recommended for optimal performance, you can always switch to RPCs without the need to change your indexer code. For information on configuring RPC-based indexing, visit the [RPC Data Source](/docs/HyperIndex/Advanced/rpc-sync.md) documentation.
For production deployments, it’s recommended to use HyperSync as the primary data source and have RPCs as fallback to improve reliability.You can read more about it in the [RPC Fallback](/docs/HyperIndex/rpc-sync#improving-resilience-with-rpc-fallback) section.
### Improving Resilience with RPC fallback
For production deployments, it's recommended to use HyperSync as the primary data source and have RPCs as fallback to improve reliability. You can read more about it in the [RPC Fallback](/docs/HyperIndex/rpc-sync#improving-resilience-with-rpc-fallback) section.
🤖 Prompt for AI Agents
In docs/HyperIndex/Advanced/hypersync.md around lines 87 to 89, fix the spacing
typo by inserting a space after the period so "reliability.You" becomes
"reliability. You"; update the sentence to include that space and save the file.

@keenbeen32 keenbeen32 merged commit 45542d4 into main Nov 10, 2025
3 checks passed
@keenbeen32 keenbeen32 deleted the nb/docs-fix branch November 10, 2025 09:24
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.

4 participants