Live data from Hacker News

Show HN: A text-only blog engine using Cloudflare workers and KV store

github.com

21–30 of 54 posts

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#21
post #16
post #15

Earlier quoted context omitted.

No.

Yah, I guess you could use WebRTC or some other way of exchanging messages now that I think about it.

You don't even need realtime. You can get away with just having people POST to a backend, updating a database and letting people refresh the page.

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#22
post #21
post #16

Earlier quoted context omitted.

Yah, I guess you could use WebRTC or some other way of exchanging messages now that I think about it.

You don't even need realtime. You can get away with just having people POST to a backend, updating a database and letting people refresh the page.

Why do all that when you could have the server write simple text files to the disk?

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#23
I tried this out and found it useful for exploring Cloudflare workers. One thing I learned: KV and durable objects are not the same thing. KV is eventually consistent, durable objects is the thing where all traffic has to be routed to the same node since it's dealing with a read/write store that has read-after-write guarantees.

Also Cloudflare KV provides a simple dashboard interface for adding and removing KV entries: https://gist.github.com/simonw/1e072d04960616970381a433bfca7...

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#24
This is great, thanks! It's always useful to see these "here's how to do something useful with a new technology" demos, and I've been wondering how Cloudflare's offerings work exactly, so thanks!

Now we need the equivalent thing for Durable Objects! Maybe a chat room, hm.

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#25
This is nice, apart from a quick play when they were new I've never really looked at CF Workers and KV again. This made me go and have a look at the docs and find that it's actually looks quite useful. I didn't know they'd added Python and other languages, so that's cool in itself.

I like Jon's example here, a single and fairly short file that does just enough to demo this all, nice.

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#26
post #18
post #14

Earlier quoted context omitted.

[flagged]

" Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something. " https://news.ycombinator.com/newsguidelines.html

[flagged]

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#27

This is nice, apart from a quick play when they were new I've never really looked at CF Workers and KV again. This made me go and have a look at the docs and find that it's actually looks quite useful. I didn't know they'd added Python and other languages, so that's cool in itself. I like Jon's example here, a single and fairly short file that does just enough to demo this all, nice.

I'd have thought the SQLite database (D1) would be a more obvious fit for a blog?

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#28

I think what would be amazing is if WhatsApp creates a mobile number based website which anyone can access if they know the mobile number. Access through whatsapp mobile app.

That's called a Telegram bot and you can write one yourself.

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#29

This is nice, apart from a quick play when they were new I've never really looked at CF Workers and KV again. This made me go and have a look at the docs and find that it's actually looks quite useful. I didn't know they'd added Python and other languages, so that's cool in itself. I like Jon's example here, a single and fairly short file that does just enough to demo this all, nice.

I'd have thought the SQLite database (D1) would be a more obvious fit for a blog?

I was stoked on D1 when it was announced.

But the maximum DB size is 10GB (https://developers.cloudflare.com/d1/platform/limits/).

Really?

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#30
post #26
post #18

Earlier quoted context omitted.

" Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something. " https://news.ycombinator.com/newsguidelines.html

[flagged]

It's quite a smear to write "He's probably unemployed at the moment or just brushing off before the next interview.". Cheap smears are a form of casual dismissal and devalue this site.
Post reply on HN