Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sudhirj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
511.
▲
by
sudhirj
6y ago
Yeah, the Go decision was more because of familiarity and some tooling I have available for Dynamo. The real problem I was tackling is zero marginal cost multi tenancy. Right now a new Ghost installation costs 500MB on a disk and 1GB in RAM
512.
▲
by
sudhirj
6y ago
Yeah, will edit that. But yes, you don’t need to worry about managing them because they’re so cheap.
513.
▲
by
sudhirj
6y ago
I was trying to make it multi tenant, move it a serverless database like DynamoDB, and rewrite the server in Go. I’m trying to make a Ghost hosting service that’s free / $5 a month for personal use. I’ve figured out a way to make the e
514.
▲
by
sudhirj
6y ago
For a read-only load, right? If there were writes and transactions I don’t see how that would work.
515.
▲
by
sudhirj
6y ago
Thanks, will do.
516.
▲
by
sudhirj
6y ago
Will edit that, yeah. I was am struggling to explain the GIL without having to talk about the GIL, because if open that can of worms it becomes a much longer article and goes off track. All of the GL and event loop based stacks go multi thr
517.
▲
by
sudhirj
6y ago
I had a few paragraphs written earlier (maybe half) over the course of the pandemic. I spent a lot of the pandemic procrastinating by trying to build my own blogging software, a more efficient version of Ghost, but it’s too much duplicated
518.
▲
by
sudhirj
6y ago
Re MySQL counts, based on your notes you’re probably using 50 conns at max whatever your settings are. 25 for sidekiq (assuming you do run a hot queue) and 25 at max for the servers. Irrespective of DB pool size, I think Rails does lazy con
519.
▲
by
sudhirj
6y ago
Well, even the default 5 would probably be overkill, unless you’re spawning threads on a request that each use their own DB connections. But yes, I think you can go with the the default. Once you’re confident about being threadsafe, the Her
520.
▲
by
sudhirj
6y ago
I've added a link to the project in the context of another comment here about deadlocks... is there anything in particular you'd like to mention? Will look into the pool in detail to see if there's any special tips and tricks
521.
▲
by
sudhirj
6y ago
Ah, ok. Seems clear that this is for a thread requiring C connections simultaneously to get its work done. That would make it a necessary calculation to avoid deadlocks. I don't see this being necessary in a Rails type app where ther
522.
▲
by
sudhirj
6y ago
This formula `pool size = Tn x (Cm - 1) + 1` is really interesting. Any idea how it's derived or what branch of math this is from?
523.
▲
by
sudhirj
6y ago
Author here, self-posted. Can AMA.
524.
▲
Understanding Connections and Pools
(sudhir.io)
216 points
by
sudhirj
6y ago
|
73 comments
525.
▲
by
sudhirj
6y ago
I think some big company (maybe Facebook) has this rule that you had to deploy something to production on your first day. They seemed pretty confident in their processes and devops teams. A company trying to imitate that policy without doin
526.
▲
by
sudhirj
6y ago
Huh? Not the way I understood it. Inertia implies the world is divided into cells numbered 1 to N, and people don’t move from X to X + 1 unless they report, say 5, consecutive times from X + 1. Overlapping systems remap the cells 1,2,3 to 1
527.
▲
by
sudhirj
6y ago
Is this even possible under the licensing agreements of journals? Why isn't every country already doing this?
528.
▲
by
sudhirj
6y ago
I think Kickstarter itself is a pretty popular way to get projects running https://www.studiobinder.com/blog/kickstarter-film-projects/
529.
▲
by
sudhirj
6y ago
It won't be a market, but it will be a living. Netflix can pay people a contract or a salary to produce content.
530.
▲
by
sudhirj
6y ago
Cloud kitchens are actual commercial kitchens run by corporations. Indie chefs just cook out of their own homes.
531.
▲
by
sudhirj
6y ago
They’re buying smaller and smaller projects as time goes by, catering to more niche audiences. They understand that they’re in a unique position to work the long tail. Having tiktok like individuals creating content on Netflix is the logica
532.
▲
by
sudhirj
6y ago
The economy will bifurcate into two sections: a corporate economy that builds platforms, and an individualist economy that uses those platform for creative purposes. Think YouTube + video creators, Spotify + artists, Netflix + more long tai
533.
▲
by
sudhirj
6y ago
Flutter, probably, with the added benefit of the same code base (including UI) working on iOS and Android.
534.
▲
by
sudhirj
6y ago
Depends on the particular system you’re using. Some might allow it, or you could do it with a script if you really wanted to.
535.
▲
The Making of a Dumpster Fire
(m.signalvnoise.com)
5 points
by
sudhirj
6y ago
|
2 comments
536.
▲
by
sudhirj
6y ago
Not off the top of my head, no. Your plan sounds good except for the "and requeues it back" part. Ideally you should just ignore failure (don't acknowledge/delete) and have the queue control plane decide when and how to
537.
▲
by
sudhirj
6y ago
This is touched on in the article, but I should probably expand on it a bit more. A queue is a transport tool that allows moving information between the stages of the workflow, but using a queue doesn't mean you have an excellent workf
538.
▲
by
sudhirj
6y ago
Added a note about the consumer groups, and how each consumer group behaves like a queue.
539.
▲
by
sudhirj
6y ago
True enough. Will think about whether it makes sense to add a section on stream processing, or maybe do a different post. It's an interesting complement to message queues. There's also Kinesis in this space, will look out for othe
540.
▲
by
sudhirj
6y ago
Makes sense, yeah. If a system architecture demands that failures be cascaded downstream to all dependencies, then queues should not be used. There are definitely architectures for which this is a reasonable demand.
More ›