Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
latch
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
151.
▲
by
latch
5y ago
I don't think you can have a serious conversation about microservices without talking about poison messages and ordering guarantees (both with respect to each other and not). What does Pub/Sub provider to deal with those? (If you&
152.
▲
by
latch
5y ago
> For some time proponents of unit testing have asserted that unit tests should not touch a real database Is that still a belief in some circles? I feel like the shift away from this started like 15 years ago (largely because of RoR in m
153.
▲
by
latch
5y ago
Is this particularly unique to inequality? You cannot say you are against animal cruelty unless you are willing to stop eating factory-farmed meat? You cannot say you are against fossil fuels unless you are willing to stop driving [gasoline
154.
▲
by
latch
5y ago
I think Redis would have been successful even without a text-heavy protocol. Redis took a middle ground and [ascii]-length prefixed responses (though I don't think it was initially like this). That's a reasonable and likely necess
155.
▲
by
latch
5y ago
I think they're both relatively straightfoward, with the biggest difference being active mode. (I'll use "Elixir", but it all applies to Erlang as well). Elixir sockets can be safely shared between processes, which might
156.
▲
by
latch
5y ago
https://stressgrid.com/blog/cowboy_performance_part_2/ Might be interesting. Amongst other things, they experimented with a patch to Cowboy to use {active, 100} instead of the default {active, 1} and got some nice
157.
▲
by
latch
5y ago
In Elixir / Erlang, you can put a socket in either active or passive mode. In passive mode, you need to explicitly call recv/2 or recv/3 to get data, very similar to a traditional socket API. This is what this code appears to
158.
▲
by
latch
5y ago
On the flip side, there's no shortage of providers that have been around since before AWS was a thing. For example, the quote that I found was from a provider I used over a decade ago (no affiliation), and who have been in business sin
159.
▲
by
latch
5y ago
These types of comments constantly come up. It's a false dichotomy. Following HN guidelines, I'll assume best intention rather than trolling or FUD. There are other options than the two that you've described - namely VPS prov
160.
▲
by
latch
5y ago
That's one reason. Some others: 1 - Free credits 2 - No one ever got fired for buying IBM 3 - AWS is sold to CTO/CIOs. AWS is a massive marketing and sales success 4 - An entire job type has sprung up around cloud-complexity. Thes
161.
▲
by
latch
5y ago
I take pretty unhealthy pleasure in looking at EC2/GC announcements and comparing them to random offers on the WebHostingTalk's Dedicated Hosting Offers section. The cloud offerings almost always end up being 2-4x more expensive (
162.
▲
by
latch
5y ago
This is pretty basic PostgreSQL tuning (1). An oft-cited problem with PostgreSQL is that it uses a process-per-connection (session in PG lingo, I think). `work_mem` is the amount of memory a connection has to, you know, do work. Sorting, di
163.
▲
by
latch
5y ago
In most cases, you're trusting other organizations to dispose of the disk, ensure they can be securely re-used (1) and that their employees will generally behave correctly and ethically. But still, in general, I agree. I fill in these
164.
▲
by
latch
5y ago
No problem, go ahead.
165.
▲
Elixir, a Little Beyond the Basics
(openmymind.net)
5 points
by
latch
5y ago
|
2 comments
166.
▲
by
latch
5y ago
The problem isn't so much concatenation, as it is, concatenation based on dynamic (e.g user-submitted) input. In some (admittedly rare cases), it's hard to avoid concatenation since not every part of an SQL query can be parameteri
167.
▲
by
latch
5y ago
https://en.wikipedia.org/wiki/2010%E2%80%932012_world_food_p...
168.
▲
by
latch
5y ago
> If that's not being revolutionary, I don't know what is. Then you might want to look up the definition. A revolution is "radical" and makes "fundamental changes in the socioeconomic situation". Life after
169.
▲
by
latch
5y ago
I know people will say "defense in depth", but it really seems more like security theater to me. It only catches some basic (but admittedly historically common) mistakes. The problem with most WAFs is that they tend to have false
170.
▲
by
latch
5y ago
I tried to get into Gemini. I wrote a server in Elixir. Then I started to write content. The lack of inline links is a brutal and I'm pretty sure it'll keep Gemini from growing beyond anything but a curiosity. IT isn't HTML l
171.
▲
by
latch
5y ago
Kibana and Loki both load full messages in their list page. You end up loading megabytes (sometimes hundreds of megabytes) of data but it only displays a few kilobytes. I don't know when we forgot the basic paradigm of list -> clic
172.
▲
by
latch
5y ago
I totally agree, but I think you can use examples closer to home. Carmack could build a video games which is 100x across a number of metrics (quality, cost, time to deliver) than I could. Still too far? Pick your field, there'll be exp
173.
▲
by
latch
5y ago
I've used my share of data access libraries and patterns (e.g. hibernate, activerecord, ecto, ...). The only time I've been happy is when I use raw SQL for non-dynamic SQL and a lightweight query builder for everything else. I fee
174.
▲
by
latch
5y ago
Say you have something really simple, web -> db. But at a minimum, you have 2 web servers for HA. So you're already at 2 client-side pools. Now make it a tiny bit more complex and split this into 2 services, so you're now at 4
175.
▲
by
latch
5y ago
It's hard to answer this in general. Most out-of-the-box scaling solutions have to be generic, so they lean on distribution/clustering (e.g., more than one + coordination) so they're expensive. Consider something like an amaz
176.
▲
by
latch
5y ago
I've done things at scale (5-10K req/s) on a budget ($1000 USD) and I've done things at much smaller scales that required a much larger budget. _How_ you hit scale on a budget is one part of the equation. The other part is: w
177.
▲
by
latch
5y ago
First paragraph in the linked article: The Council of the European Union voted on Monday to recommend reinstating a ban on non-essential travel from the United States due to its high rate of COVID-19 infections.
178.
▲
by
latch
5y ago
But they do have obligations that make it otherwise worthless to the them.
179.
▲
by
latch
5y ago
Not directly related, but if I could have 2 thing from ETS, it would be: 1 - Ability to atomic rename a table. It's a fairly common use-case that you have a lock-free read-only map, rebuild it in the background, and the swap the newly-
180.
▲
by
latch
5y ago
One thing to keep in mind is that even the simplest Rust NIF will significantly slow your builds and increase your repo/artifact sizes.
More ›