Ask HN: How long will it take for GraphQL(or else) to take over REST?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • workbox

    📦 Workbox: JavaScript libraries for Progressive Web Apps

  • On one level never, so long as http is the dominant protocol.

    For some things REST is appropriate, for other things.

    I am impressed with websockets; it's easy to make a web page that controls your smart lights, stereo volumes and such where the updating is symmetrical: not only does clicking on the HTML button toggle the light, the web page changes when the light is toggled from a different switch.

    With the right backend a business application could do the following: you are looking at a customer record that shows the order hasn't shipped yet, the page updates the instant the order is shipped instead of requiring a reload.

    The other thing I would look at is web workers, service workers, and indexed storage. One scenario is:

    you want to read the manuals for your favorite programming language on your computer disconnected from the net; a web app creates a Service Worker that downloads all the web pages as a brotli tar file (not ZIP for many reasons) and stores them in IndexedStorage on your browser: the Service Worker then acts like an http server integrated that serves the pages of the manual.

    If you want to avoid the baggage of http you can also create a Web Worker and communicate with it with JSON messages, a little like having a local "websocket server".

    Those tech have not been used much because the coding is tricky and the most popular framework so far is

    https://developers.google.com/web/tools/workbox/

    which really just complicates the cache behavior of the browser -- the probability that workbox will really speed up your app is about 0.01%, compared to something like the "solid compressed tar" approach which will have much better performance you can feel. (Like try the quarter mile in a Dodge Viper instead of a Honda Fit)

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts