Earlier quoted context omitted.
I do similar stuff to what you do, writing my backend code in Rust and not using a database but opting instead to keep things in memory and flushing to disk on my own. And running servers that I manage with SSH. I would love to talk with you and exchange knowledge. Your HN profile has no publicly visible contact info though. Do you have an email address I can reach you on? Can you put it in your HN profile descriptio…
Sure. You can email me at j@exia.io. (Just please note that if I apparently don't reply and if you're using gmail then my reply probably went to spam or gmail's /dev/null, so email me again; lately gmail doesn't like emails that I send and either puts them into spam or just sends them to /dev/null, even when I'm replying to someone that emailed me first! So much for Google having no monopoly, sigh ...)
Ask HN: What novel tools are you using to write web sites/apps?
291–300 of 333 posts
Re: Ask HN: What novel tools are you using to write web sites/apps?
#292- React/ Js framework
- Deploy Static Files to S3
- Cloudfront for cdn
- Cloudflare pointing to cloudfront cdn
- Cloudfare Page rules for protected sites / no need create login/auth
- Flask
- Postgres
Re: Ask HN: What novel tools are you using to write web sites/apps?
#293Re: Ask HN: What novel tools are you using to write web sites/apps?
#294This is the first thread in a long while that's given me a lot of FOMO anxiety. I've made a lot of one-off server-side rendered apps in Flask, and right now I'm doing some backend work ASP.NET Core for my job, but I have this overwhelming feeling there's so much I don't know and I'm not sure where to start. I only bring this up in case I'm not the only person sharing these feelings.
Re: Ask HN: What novel tools are you using to write web sites/apps?
#295This partially might be more of a what's old is new again, but here's what I use: - 100% server side rendered - Progressively enhanced (fully works without JS, but having JS enabled makes it nicer) - In select places where I need SPA-like snappiness I use a ~100 line long DOM diffing algorithm (I request full HTML through AJAX and diff it into the current page; if the user has no JS enabled then the page just refresh…
What are the requirements that need it to have no database?
The biggest two advantages of not having a database are simplicity (I don't have to query the database to access the data, as it's already in memory) and speed (my average response times are well under 1ms, and that is with compressing every reply, having more data in memory than I have RAM, running on a cheap dual core VPS, and being flooded with requests from linking to my site on HN).
Re: Ask HN: What novel tools are you using to write web sites/apps?
#296Re: Ask HN: What novel tools are you using to write web sites/apps?
#297Earlier quoted context omitted.
20 TB. I would definitely recommend going with a VPS over AWS in your case, unless you want to play with AWS-specific tech to build up your resume.
are you also installing the DB within the VPS? I would be needing a web app connecting with MySQL and a bunch of Crons. Also, could I host multiple domains?
Yes, you can host multiple domains. You can either point multiple domains to a single IP of your VPS, and configure your web server to use name-based virtual hosting, or you could buy an extra floating IP, assign it to your VM, and use IP-based virtual hosting.
Re: Ask HN: What novel tools are you using to write web sites/apps?
#298Earlier quoted context omitted.
My own. (: In general I was a little frustrated with the state of Rust's web server ecosystem since it has, what I personally call, the NPM syndrome. Pulling a single crate will often pull along with it hundreds of dependencies, and murder your compile times. I know that those dependencies are often necessary, but during development I do not need all of that. So I made my own. But of course it's generally a bad idea…
Any chance any of this can be made open source? Sounds like a killer feature
Re: Ask HN: What novel tools are you using to write web sites/apps?
#299Re: Ask HN: What novel tools are you using to write web sites/apps?
#300Earlier quoted context omitted.
They're storing their data in native Rust objects and read or write them in server application RAM. In case data becomes larger than available RAM, they have set up a large swap, which is a file or a disk partition that the OS uses when no more real RAM is available, while acting like nothing is happening (and everything gets 1000x slower). They periodically serialize these in-memory objects to a file on disk, and pr…
Correct. Although I don't read everything on startup. Some of the data (e.g. per user data) is only loaded once it's needed. Also, the swap doesn't make everything slower as long as my active working set is smaller than the available RAM. That is, I have more data loaded into "memory" than I have RAM, but I'm not using all of it all the time, so things are still fast. It's basically an OS managed database. (If I were…