Better HN
topnewbestaskshowjobs
Log inSign up

nulltype

738 karma · joined Oct 15, 2013 (13y ago) · 478 submissions

Submissions

comment 10y ago · link · parent

Maybe you should use TCP instead of HTTP, but there's a number of reasons to use HTTP as basically TCP:

* Browsers can't speak TCP natively (oddly enough)

* HTTP works through proxies

* Most web frameworks do HTTP more easily, same for web servers

Of course, the real solution here is probably to use websockets or HTTP/2, since then you get all the advantages of HTTP without the downsides of TCP.

comment 10y ago · link · parent

Does renewing a certificate require completing a challenge, or is that only for the initial certificate?

comment 10y ago · link · parent

In what way does Go scale badly from an engineering point of view?

comment 10y ago · link · parent

Isn't that exactly what Rob Pike is saying with the vector space analogy?

comment 10y ago · link · parent

The inner workings may be obscure, but I really like it when the outer workings are not. I use the Google Datastore (although Postgres would work here too), which I'm sure is super complicated internally. Externally though, it has certain properties that form a fairly simple mental model.

With that mental model, you can predict from reading some code what the possible error cases or race conditions could be, or what the state of the datastore entity would be after running some code against it. Perhaps that's not precisely "Software Complexity", but "Library Complexity" instead.

I was going to use Redis as an example, but the internal workings are probably too easy to understand.

comment 11y ago · link · parent

Wait, but the customers here are Hetzner's customers, right? How would they move to a different ISP?

comment 11y ago · link · parent

Is there any info about the per connection memory usage?

comment 11y ago · link · parent

I don't have direct experience with Redshift, but I have heard some stuff. BigQuery has really variable performance for us though, not sure how it compares to Redshift.

comment 11y ago · link · parent

In my limited Pub/Sub experience, this seems to be how it works. You publish to a topic (an immutable stream), and then create a decoupled subscription that reads messages from the topic. Am I missing something?

comment 11y ago · link · parent

I will admit that the party support plan is a bit pricey.

comment 11y ago · link · parent

Also I've found the network load balancer to be amazingly better than ELBs.

comment 11y ago · link · parent

In the ones they mentioned, GCE vs EC2, GCS vs S3, and BigQuery vs Redshift, they seem pretty comparable to me.

comment 11y ago · link · parent

Yeah, AWS docs are really not very good in my limited experience. Google's docs have some pretty good parts, but they can be hard to find. Authentication is still kind of confusing on GCP.

comment 11y ago · link · parent

For the lowest support plan (Silver), high priority issues were addressed pretty quickly. Low priority ones are a bit slow, but hey, they're low priority. Plus the Silver support plan is very cheap.

comment 11y ago · link · parent

What's meh about it versus Kinesis?

comment 11y ago · link · parent

Part B there is why I suspect this tech talent shortage is not as real as it's made out to be. If there was a shortage, they would totally care.

comment 11y ago · link · parent

Does it cause Chrome to lock up?

comment 11y ago · link · parent

I think some of these problems are solved by HTTP/2 multiplexing.

My experience at least with using REST for APIs seems to agree with yours. REST APIs, like traditional OO programming, seem to only help in a small number of situations. I've seen some really complicated things in the name of "RESTful"ness, like crazy Accept headers for different versions of the API. And like you pointed out, each developer seems to have their own idea of what REST means.

Approaching the API design from the other direction seems better. What is HTTP offering you that is better than just using a socket? It's got a request/response thing with message framing, some handy out-of-band stuff with the headers, there's HTTPS support, it works directly with browsers, and sometimes you can even get it to work through a proxy. HTTP requests are also supported pretty easily (more easily than socket stuff maybe) in most languages.

Then, using features from HTTP where they make sense can be nice (maybe some of the status codes or ETags are useful?), but throwing the whole nebulous REST framework in there without considering how well it matches the problem or how it adds to the complexity of the solution is not a good idea.

comment 11y ago · link · parent

I track the pubsub subscribers on each client connection, but I'm not sure what you mean by a multiplexed process for the pubsub channel.

Depending on your traffic patterns, considering the broadcast activity is potentially important, and then you might worry more about CPU than RAM.

I use redis myself, but gnatsd or redis cluster may help with scaling the pubsub part of the system.

comment 11y ago · link · parent

Now that you can buy servers in tiny linear increments, it seems more interesting (but less headline-y) to talk about KB per connection or CPU per connection. It looks like this is about 41KB per connection.

For comparison, I checked my not-very-optimized go server, and it looks like (based on VSZ value) to use 25KB per connection in go, with 43KB per connection used by nginx (to provide SSL termination).

comment 11y ago · link · parent

I'm sure there's no problem that can't be created by a sufficiently bad PM.

I think you can treat the name of the city as the name of the timezone. Seems like you'd have the same problem either way. If you used "Mountain Time" and then your city switches to "New Mountain Time" you still have the incorrect timezone.

Instead of cities it could use polygons on the surface of the earth, but that's starting to get complicated at that point.

comment 11y ago · link · parent

Unicode hurts workers, families, & community! Shame on the Unicode Consortium!

If we got rid of DST and didn't change the rules too often, time zones wouldn't really be that big of a deal.

comment 11y ago · link · parent

We have clocks that are wrong all the time already, I'm not sure how that makes date time libraries worse. GPS satellites are in space, they have to deal with relativity effects, and mostly everything seems fine.

comment 11y ago · link · parent

Also interesting, is the title of the book "Skin in the Game"?

comment 11y ago · link · parent

That would be pretty hilarious.

comment 11y ago · link · parent

I've done it before, but it was kind of a pain and I got the impression nobody else used that stuff. I wonder why it's not more popular/easy.

comment 11y ago · link · parent

Do you have results for the different tests? I did not see any in the repo.

comment 11y ago · link · parent

It seems weird how you can't easily package python into an executable without Docker.

comment 11y ago · link · parent

I suppose there's the relevant blog post https://www.imperialviolet.org/2010/06/25/overclocking-ssl.h...

comment 11y ago · link · parent

So there's a map of SF meeting its housing goal. What is the goal and how is it set? According to these graphs of housing stock vs population: http://sf.curbed.com/archives/2015/02/04/sfs_population_is_g... the goal for SF may need to be pretty high.
1
456
16