Client-Side Server w/ Rust: A UI alternative

Logan Keenan

next

Server-side apps

Typical Server-Side App

Pros

  • Fast initial page load
  • Easier to develop

Cons

  • Latency
  • In some cases, scaling

previous next

Client-side apps

Client-Side App

Pros

  • Improved UI/UX

Cons

  • Initial Page load
  • Performance
  • Code complexity

previous next

What if we ran the server on the client?

Client-Side Server App

previous next

What do we need to do?

Problems

previous next

Hello Service Workers 😍

Client-Side App

Service Worker: essentially act as proxy servers that sit between web applications, the browser, and the network (when available). MDN

Pros

  • Improved UI/UX
  • Improved Performance
  • Easier to develop
  • Fast initial page load

Cons

  • Service Worker support
  • Unknown Unknowns

previous next

Code & Demo

previous