, 6 tweets, 3 min read
My Authors
Read all threads
@niall_obrien you should build your web app against one set of URLs & JSON API against another

the web application URLs should be cache-happy w/ highly tuned, specific data access (SQL, etc.) for the important UIs

The JSON API should be flexible & open (GraphQL) but w/ rate-limiting, etc
@niall_obrien this also means you can have your application code running on distinct server infrastructure, and not get taken out by a bad API client
@niall_obrien You want web app end points to be extremely fast and low-chatter. A lot of context can be encoded in the URL (v a general query language) They are also prone to changing rapidly as the web app changes:

infoq.com/articles/no-mo…

This is different than your data API
@niall_obrien Your data API can be used for anything and thus has a different feel: it needs to support new and novel use cases, but remain stable for older clients that aren't going to update. Generality means security is trickier. It's a totally different mindset vs. fast-changing app URLs
@niall_obrien when you are building a web app, you should be perfectly OK throwing away a set of end points if you change your UI, and adding new, highly specific end points to get the UI "just right"

you simply can't do that with a general, public data API
Missing some Tweet in this thread? You can try to force a refresh.

Keep Current with htmx.org

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!