Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ciprian_craciun
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
ciprian_craciun
4y ago
UTF-8 is both "binary" and "text" at the same time. :) It's binary because the UTF-8 standard states how each Unicode code-point (i.e. character) is to be translated into a series of bytes. But, because each (corre
32.
▲
by
ciprian_craciun
4y ago
The main highlights (for me) are support for `backup --read-concurrency` to control the I/O pressure on the underlying file-system and disks and `backup --no-scan` which also helps. (I'll have to test these options myself, plus t
33.
▲
Restic 0.15.0 Released
(restic.net)
2 points
by
ciprian_craciun
4y ago
|
1 comments
34.
▲
Show HN: z-tokens – random tokens generation and related tools
(github.com)
1 points
by
ciprian_craciun
4y ago
|
0 comments
35.
▲
by
ciprian_craciun
4y ago
Yes, the Cloudflare web-analytics does require JavaScript. With regard to no-JavaScript sites I understand; and for example the only JS on my site is the one for GoatCounter and Cloudflare web-analytics. GoatCounter does fallback nicely i
36.
▲
by
ciprian_craciun
4y ago
No, with Cloudflare you can use for free the "web analytics" product; you can even use it for any site, not only those hosted at CloudFlare. (Perhaps what you've seen is the "cache analytics" or "traffic anal
37.
▲
by
ciprian_craciun
4y ago
You could also just throw a CDN in front of Netlify (I do this with Cloudflare) and it will be extremely hard to reach that limit.
38.
▲
by
ciprian_craciun
4y ago
> [...] the article somehow concludes that bringing your own server with the right configuration is not an option. [the author here] On the contrary, it is an option to fine-tune your web-server configuration to put all the right header
39.
▲
by
ciprian_craciun
4y ago
> Building an origin server for a CDN is a different task to building a regular server. The focus for cached resources is getting the byte size down, not serving a billion requests at once. The CDN can do that. I think this put perfectly
40.
▲
by
ciprian_craciun
4y ago
[the author here] Indeed I mention Cloudflare quite a lot, and that is for two reasons: (A) If you do want to have a performant website (be it static or dynamic) you do need a CDN with edge caching; else the physics with it's insist
41.
▲
by
ciprian_craciun
4y ago
You could just use GoatCounter < https://www.goatcounter.com/ >; it's simple to deploy it yourself (it's open-source), but it's also free to use it hosted, and it seems to be quite privacy friendly (if o
42.
▲
by
ciprian_craciun
4y ago
> Worth noting that the incoming younger generations can't and don't into file systems. [...] We are probably the last generation who can be ubiquitously assumed to have an understanding of files and folders/directories
43.
▲
by
ciprian_craciun
4y ago
> Strong disagree. You do not want both URLs to return the same content; you can have alternatives redirect to the canonical URL; but think through why you’re doing it: who is benefited by the redirect? At least with regard the with/
44.
▲
by
ciprian_craciun
4y ago
[the author here] Indeed didn't mention anything about the shared webhosting solutions, just as I didn't mention anything about S3 + CloudFront, or Backblaze B2 + a CDN in front, or Cloudflare + WebWorkers, or AWS Lambda, or any
45.
▲
by
ciprian_craciun
4y ago
[the author here] Well, the article does point in the last section "Putting it in practice" to my own implementation < https://github.com/volution/kawipiko >. :)
46.
▲
by
ciprian_craciun
4y ago
> fasthttp doesn't implement HTTP/1 correctly Could you point to an issue describe such an improper behavior? > doesn't implement HTTP/2 at all Or HTTP/3; and most likely it won't implement HTTP/4 (
47.
▲
by
ciprian_craciun
4y ago
[the author here] Where do I sell a "square space-esque managed site builder with hosting"? I need to get on some of that revenue! :) :) :) Under the name of "volution" I own the following: * volution.ro -- where this
48.
▲
by
ciprian_craciun
4y ago
If one has the pre-generated response for a "simple" `GET` request (one that doesn't use conditional headers, ranges, or other advanced HTTP features), then a server could easily generate proper responses (based on that simpl
49.
▲
Static site hosting hurdles
(notes.volution.ro)
144 points
by
ciprian_craciun
4y ago
|
176 comments
50.
▲
by
ciprian_craciun
4y ago
BTW, I've just tried running Kawipiko on an Android tablet (ARM64) to export the same demo as available at the link in the repository, and it works great! In fact, benchmarking it over wireless + Wireguard with 128 concurrent connectio
51.
▲
by
ciprian_craciun
4y ago
[Kawipiko's author here] NGinx is great at what it does, however in order to get good performance out of it one must also be a master of its configuration knobs, and knowing all of their implications. For example while benchmarking N
52.
▲
by
ciprian_craciun
4y ago
For example in one production deployment, Kawipiko is used to serve a snapshot of a former dynamic web-site that is now conserved. That snapshot has around 600K files and would eat around 12 GiB of storage; but with Kawipiko all that is b
53.
▲
by
ciprian_craciun
4y ago
The `Cache-Control` header could be configurable (although at the moment the Kawipiko archiver hard codes the 60 minutes max age, and the server just uses the headers present in the archive). (In fact there is a flag to disable setting thi
54.
▲
by
ciprian_craciun
4y ago
> How do they manage to do that? One aspect I can think of is, trying not to use pointers and data structures with dynamic size. On the contrary, they do use lot's of pointers (actually byte slices) and structures with dynamic size,
55.
▲
by
ciprian_craciun
4y ago
At the moment the site operator has three choices: * bundle two separate archives, one with compression and one without (provided it fits in 4 GiB), and use something like HAProxy to choose between the two backends based on the Accept-Encod
56.
▲
by
ciprian_craciun
4y ago
The main problem with Go when it comes to raw performance is heap memory allocation. `fasthttp` (and the rest of Kawipiko's code on the main serving path) does all it can to avoid any sort of memory allocation (or "heap escape&qu
57.
▲
by
ciprian_craciun
4y ago
Well, as the CDN initials hint (Content Delivery Network), these services only "deliver" your content; the content must still live somewhere... That "somewhere" can either be another cloud service dedicated to static si
58.
▲
by
ciprian_craciun
4y ago
[Kawipiko's author here] Caddy, and Nginx, Apache, etc., are general purpose web servers that either serve content directly from the file-system or reverse proxy requests to other backends. Meanwhile Kawipiko has only one purpose: se
59.
▲
by
ciprian_craciun
4y ago
[Kawipiko's author here] The main HTTP "engine" behind Kawipiko is `fasthttp`, < https://github.com/valyala/fasthttp > that supports only HTTP/1.1 (with or without TLS). However for experiment
60.
▲
by
ciprian_craciun
4y ago
I have only two issues with the `muxfs` implementation as it stands: (1) (And the largest problem) is that it requires stable inodes in order to tie the checksums with the actual files. This means (and it's already stated in the artic
More ›