question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

As mentioned in https://vite-plugin-ssr.com/SR-vs-CR Client Routing provides the best performance while Server Routing provides the simplest architecture.

An alternative is to:

  1. Dynamically load the HTML of the next page. (No full page-reload: we use window.fetch() to load the HTML.)
  2. Dissect that HTML in the browser-side
  3. Inject the new HTML parts into the DOM

This is common practice outside the JS world, e.g. Ruby on Rails: https://github.com/hotwired/turbo.

The big benefit here is that we keep the simple architecture of Server Routing, while having fast page transitions similar to Client Routing.

Note that Client Routing is still needed for:

Server Routing is also still needed for zero browser-side JavaScript.

We could call this Hydrid Routing.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
brilloutcommented, Aug 10, 2022

@ryansolid Thanks for the reply.

@redbar0n Thanks for the resources.

I think it’s too early to tell whether it makes sense: the ecosystem is evolving a lot (e.g. offscreen rendering and server components which both involve the routing process). It’s not clear where things will end up. Let’s wait and see how the dust settles.

For now, supporting Server Routing as well as Client Routing works out for the vast majority of users, if not all.

Closing in the meantime. We can re-open this if a need arises for it.

1reaction
redbar0ncommented, Aug 8, 2022

@brillout you should watch these sections from Ryan and Nikhil’s recent stream on Partial Hydration? + Hybrid Nested Routing (using the Islands Architecture). In a lot of ways it surpasses the Hotwire.dev Turbo + Stimulus approach.

  • Pro:
  • Con:
    • Islands architecture might introduce some sneaky cases with inter-component communication, and enforce some more discipline on developers.
Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Hybrid Routing Protocol (HRP)?
Hybrid Routing Protocol (HRP) is a network routing protocol that combines Distance Vector Routing Protocol (DVRP) and Link State Routing ...
Read more >
What Is Hybrid Routing?
What is hybrid routing? It's the best way for wholesalers, distributors, and other B2B enterprises to maximize customer satisfaction while ...
Read more >
Link State, Distance Vector, and Hybrid Routing Protocols
A hybrid routing protocol has some characteristics of a link state routing protocol, and some characteristics of a distance vector routing protocol. An...
Read more >
Hybrid Protocol - an overview
2.9.1.3 Hybrid Routing. Hybrid protocols utilize the capabilities of both reactive and proactive protocols, and unite them together to achieve better results.
Read more >
Hybrid Routing Protocols > Determining IP Routes
Enhanced IGRP (EIGRP ) is a hybrid routing protocol developed by Cisco. EIGRP makes decisions based on metric information it receives from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found