4 ms·
Show HN: A server that removes a byte with every request
I was inspired by a comment[1] here on HN to write a static web server that slowly degrades the content it serves byte by byte as it is requested. Every time someone requests a path from the server, a byte is removed from the next request to that path (barring 404s etc.) It resets every hour.
The nature of the Ritual is that I can't put this behind a cache, so it's possible that the cheap AWS server I used will get hugged to death if it becomes at all popular here. Sorry.
[1]: https://news.ycombinator.com/item?id=33568061 https://news.ycombinator.com/item?id=33568061
- Sujeto 4y agoHaha that's funny Also could be like SnapChat in a way, only the first few visitors get to see the full thing, and only the first might be the one to get a full image, intended as some sort of protection or something.
- jakebasile 4y agoThanks! I had a lot of fun writing it. It's hard for me to think of a practical use for this thing but that could be one!
- 2kwatts 4y agoThis is cool. It reset about 15 minutes ago, so there are some very minimal corruptions, but they are there. Good job!