738 karma · joined Oct 15, 2013 (13y ago) · 478 submissions
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
A solution you build yourself costs more than just the time of the engineer to build the first version, the work revolving around maintenance and improving it, when that could be borne by an outside company, could be quite high. Also, when an outside company makes it, they can amortize the cost of a new feature across multiple customers. And people will often build things that work with that product, saving you even more effort.
The cost of buying though, is also of course not just the money you pay (free and open source still have a significant cost). How complex is the bought system vs the one you would build? How hard is it to replace with something else? How well tested is it? I've done the 'buy' approach with some open source things and services before and super regretted it when it took longer to debug than writing my own and maintaining it would have.
comment 11y ago · link · parent
So type A NIMBYs were "right" in that they didn't want BART to go through their neighborhood because it would case the neighborhood to change, and lo and behold it did. Type B NIMBYs were "wrong" if they argued against BART because it had a positive effect on their home values.
comment 11y ago · link · parent
As an additional thing I do rolling deploys where I just create an entirely new VM and add it before removing the old one. This just means that I don't have to recycle a node that might potentially have some state on it.
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
For serving a filesystem over HTTP REST is great though. And all that caching stuff comes in handy.
From a practical API standpoint though, having two different encodings (GET in url with url parameter encoding, and POST with form encoded or JSON) is a pain and has caused a number of minor bugs and definitely extra work.
Using HTTP is basically a socket for JSON RPC style calls is I think the most straightforward route. In this you have one RPC per request, POST only, with a JSON request body and JSON response. If you use keep-alive it's similar to a socket but can go through some firewalls a bit easier, and has a built-in framing format and metadata thing. Also it works with existing log monitoring tools and frameworks.
comment 11y ago · link · parent
Maybe some information about how heap size and mutation rate affect GC would be interesting, as well as the future of the Go GC.
One interesting thing about Go is that if your objects contain no pointers, the Go GC does not have to scan them. So you can supposedly create huge slices of any type containing no pointers and the GC will have a much lower load on it.
There's a really good article from Dmitry Vyukov including memory related stuff here: https://software.intel.com/en-us/blogs/2014/05/10/debugging-...
comment 11y ago · link · parent
With a go server on a GCE n1-standard-2 you should be able to handle over 100k connections per server. I haven't done any benchmarks for throughput, but using redis as the messaging backend you can do pretty well.
You take 100k connections on each of the endpoint servers and make a single redis connection, using redis pubsub to subscribe to channels. Publishers can connect to the same redis and publish to those channels.
If you wanted bi-directional it could work a similar way I think, I'd guess the specific architecture depends on your requirements.
comment 11y ago · link · parent
If we did manage to create some magical cross-language library (compile everything to C?) then maybe libraries would be back in style.
comment 11y ago · link · parent