Live data from Hacker News

Show HN: OpenFreeMap – Open-Source Map Hosting

openfreemap.org

21–30 of 243 posts

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#21
post #12

I would be interested in the differences between this and protomaps

I'll write a detailed blog post for that, definitely.

Basically Protomaps / PMTiles allows you to do this serverless, but it has it's downsides.

There are two ways to use PMTiles with Cloudflare:

- Putting the file in a public bucket and use HTTP range requests.

- Deploy a worker to access it.

For the range request version, you can test PMTiles here: https://pmtiles.io/?url=https%3A%2F%2Fdata.source.coop%2Fpro....

It loads in 8-10 sec for me on a cold start. Of course it gets faster if many of us try to request it at the same time, but if you check it once per day for example, it'll be really slow, up to 10 sec.

Compare that with OpenFreeMap here: https://openfreemap.org/quick_start

It's near instant for me. (I know it's not full screen but you can make the app and then see how it's in full screen).

For the Cloudflare Workers version, I didn't find any publicly available full planet test, so I don't know the performance, but Workers are not free. It might not matter for a small project, but the $0.30/million requests per month can easily add up if your project gets popular.

In terms of OpenFreeMap, hosting it on a Cloudflare Worker would be prohibitively expensive.

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#24
post #18
post #15

FYI if you need a CDN you can get bulk pricing from fastly with a monthly commitment. I'm not sure if their hosting works for you because you might be serving byte ranges. I think we're paying 2k/month usd for like 300TB/month. Backblaze-to-fastly is free, so no egress. Love your project, more power to you. I'll be using this for a few side projects for sure.

I wonder if other CDNs can help. In addition to Cloudflare, bunny was on the radar too.

Bunny is also $10-$60/TB/month.

I believe Hetzner should not have any problem with using 100 mbps out of the 1 Gbps on their servers. That's 30 TB/month for free, per server. It'd be $300-$1800 per month on Bunny.

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#25
post #22

Hey, just curious. If you have no Cloud/LB/CDN how are you routing requests to datacenters? Anycast? DNS? Something else?

Round Robin DNS. The browser selects the best server, based on ping or some other internal metric.

Also thanks for the donation!

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#26
Very curious to know more about this, regarding PMTiles:

> Unfortunately, making range requests in 80 GB files just doesn't work in production. It is fine for files smaller than 500 MB, but it has terrible latency and caching issues for full planet datasets.

Wondering which part incurs the latency here.

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#27
post #2

This is neat! After the huge price increase a couple years ago with GMaps, it looks like you’ve come up with a creative way to offer much of the same functionality for most users. It’s unfortunate to still see small business sites to this day with error messages on their map widgets because of the API change from Google. I know nothing about mapping, but I’ve always had a dream of making a private neighborhood map wh…

Thanks! I don't know where you'd be able to get property boundaries, I guess it's usually not open-source / public data? Probably depends on the country / city.

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#28
post #18

Earlier quoted context omitted.

I wonder if other CDNs can help. In addition to Cloudflare, bunny was on the radar too.

Bunny is also $10-$60/TB/month. I believe Hetzner should not have any problem with using 100 mbps out of the 1 Gbps on their servers. That's 30 TB/month for free, per server. It'd be $300-$1800 per month on Bunny.

For this use case i would use the bunny volume tier which is $5/TB

Re: Show HN: OpenFreeMap – Open-Source Map Hosting

#30
post #26

Very curious to know more about this, regarding PMTiles: > Unfortunately, making range requests in 80 GB files just doesn't work in production. It is fine for files smaller than 500 MB, but it has terrible latency and caching issues for full planet datasets. Wondering which part incurs the latency here.

I explained a bit about PMTiles in this comment: https://news.ycombinator.com/item?id=41636376

In summary, on a cold start (so now when it's on HN it might be totally meaningless), the following page loads in like 8-10 sec for me: https://pmtiles.io/?url=https%3A%2F%2Fdata.source.coop%2Fpro...

Technically why it's slow is entirely on CloudFlare, so I can only guess. But probably they are not mirroring files of this size across their datacenters / servers. I don't know how their public buckets hosting is done, but it's definitely very slow.

OpenFreeMap on the other hand seems almost instant for me.

Post reply on HN