|
|
|
Tell HN: I built a $5/mo JavaScript-free Rails app
|
|
22 points
by victroladixit
1854 days ago
|
|
I'm happy about an app I've been working on for over a year. I'm still wrangling with the 'cookies.js' file placed on the client, with a session id, otherwise it's free of any javascript. I hadn't used Redis in the past, had been content with sub-second page loads. Now I'm getting unbelievable (to me) results under 50ms for most pages, except 3rd party API calls for coin prices and service rates. I'm getting my head around the content security policy, extracting the google fonts into my apps domain, not using analytics. It's only running on 1cpu/1gb/1appserver, which I've pared down from 4cpu/4gb/2appserver. So it's $5/mo for the VPS. I may have some knowlege to share, if you're interested. https://coinship.pro |
|
Have you looked at the Hotwire stuff that came out for Rails? Basically it lets you server render pages but deliver request 2-N over web sockets, and it just delivers the bits that changed, per how you specify. There is client side JS needed but its batteries included.
I wonder if your app (and other cloud hosted) would benefit financially more with lower network ingress/egress byte counts and costs since it is page snippets instead of full-on JSON payloads like traditional JSFramework<->XHR<->JSON<->Backend stacks.