Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 8y ago · link · parent

But that's often the case. The thing is that 'smart cars' are not so different from where Apple is already comfortable, and where they want to move. Let's say they invest massive funds into ML, hardware, etc just to fail in the car market. They can recoup a lot of that by just taking the tech they've built and reinvesting it into their comfort zone.

comment 8y ago · link · parent

I'd imagine it's a matter of leveraging existing resources (or resources they could recoup by moving back to their core upon failure) for a chance at a massive, global business.

comment 8y ago · link · parent

Yeah, noscript is pretty powerful.

The biggest difference between the two, in my experience, is UX. uMatrix is the best UX for a content blocker I've ever seen - very intuitive and simple.

comment 8y ago · link · parent

Yeah, I read it after, silly of me to comment first.

comment 8y ago · link · parent

What? What are you using Jupyter notebooks for where you want maintenance? They should be records of data analysis/ procedures, not code that runs in production or something.

comment 8y ago · link · parent

The code is open. You can modify the code. You can fork the code. You can do everything you'd normally do with the code.

You can not sell the code, or services that are directly based on the code.

Sounds pretty open and reasonable.

But we'll just have to disagree I think.

comment 8y ago · link · parent

> I've had my share of beefs with Sir_Cmpwn but this post is nonsense. You can't "largely" practice an open source model. Either you do or you don't.

Well, given that there are like 10 different criteria to meet it very obviously is not black and white.

You can view dgraph's source. You can modify and contribute to it. You can fork it, change it, etc. You just can't make it your own product that you sell.

It is open source in many, many ways, and probably the general, colloquial way. Whining endlessly because they don't want other people to sell it, and to maintain some semblance of ownership, is what's ridiculous.

comment 8y ago · link · parent

This is so overdramatic and unfortunate - a company puts code out there, does good work, largely follows OSS, and this topic gets derailed.

They degrade on the 'de facto' definition of OS by saying that others may not sell it.

That's it.

Comments like yours are why I don't interact with open source at all.

comment 8y ago · link · parent

I've been using dgraph for a side project. I chose it because I have a really high performance requirement and I find the query language feels 'right'.

Glad to see the progress made, and bugs found and fixed, for these Jepsen tests.

As a side note, interesting to see a largely Go-based, real-world project plagued with race conditions. Quite a few bugs read "but it was done in a goroutine" or "but mutable capturing in a goroutine", and even a segfault.

comment 8y ago · link · parent

> The architecture doesn't tell you anything: it is you who decide how to split.

I don't really agree. The major difference between SOA and Microservice is the guiding principals, such as the bounded context.

> As I see it, the outcome you see here is not "microservices!", it is just "doing a better job".

Maybe so.

comment 8y ago · link · parent

What if I want to open source my code so that people can use it, but also I want to make money from it?

Why is that nothing something we should reconcile? Why is that not "sharing"?

comment 8y ago · link · parent

None of those feel particularly relevant to what I said.

comment 8y ago · link · parent

Yeah, I'd say writing idempotent microservices is pretty important.

comment 8y ago · link · parent

Agreed that it is largely about splitting. SOA starts with that premise - but so do actors and modules, without moving out of process, and those are fine approaches too.

Microservice architecture tells you more about how and where to split - introducing bounded contexts and various patterns you might use.

> - In a microservice-based system, you may end up either with a handful of huge services (a monolith that uses network-based messages instead of function calls/inproc message passing), or with gross inconsistency problems if you force splits in the wrong places.

Sure. You can also write really gross, convoluted monoliths.

> Given the operational overhead and that most startups will never get to large scale, I'd say go with the monolith and try to gain traction with your startup.

As the article states, they found that microservices allowed them to move faster on features, which is something that'll matter a lot to a startup. They do, of course, state that there were upfront costs.

comment 8y ago · link · parent

> So we're sending a new data model in the form of JSON over TCP using AMQP? Or are we using STOMP over websockets? Who maintains the broker? Do we use a direct exchange or topic exchange? How do we replicate messages across exchange nodes to ensure uptime? How do we upgrade the broker?

Uh? I don't know? Like, I know how I've done it, idk how you want to do it, and I won't prescribe implementation details as if they're universal.

> Monolith, basic high availability is 3 servers, minimum. Now every single microservice needs 3x servers, plus autoscaling, plus we need things like distributed logs, a resilient broker, etc. Even simple things like uptime pinging are more expensive because we're tracking more hosts.

If you can run your entire project on 3 systems, yeah, sounds like a case where splitting out would be more expensive. Though you can do microservices without having separate hardware - just stick them on the same box. You still get software fault isolation.

> Sure, if you ignore everything outside of your system then it's really easy to work on a single microservice, and if your startup has several million dollars and hundreds of engineers - great, use microservices.

That seems like an exaggeration.

comment 8y ago · link · parent

> you aren’t acknowledging the fundamental tradeoffs.

Well, the post that I was responding to stated the tradeoffs (complexity). And I was responding by saying that 'complexity' is a bit nebulous - and, in my experience, is reduced in some areas (very easy to reason about independent microservices without having to consider dependencies).

> Debugging systemic issues across distributed systems is automatically one or more orders of magnitude more difficult.

Sure, I guess. I haven't really run into issues that good correlation ids + instrumentation can't help with. Also, I find it really easy to target metrics and 'smoke alerts' to small services. Ideally, in a distributed system, you aren't worrying too much about distributed debugging so much as a single service failure.

> I hate these discussions on HN because there’s so much generalization and opinionated arrogance

Whoof. Let's take a step back here. I shared my experience and opinion, I don't think I'm being arrogant by doing so. I stated that microservice-first is not always the way to go, but that it can work - and I pointed to an area in the article that I thought really highlighted this point (the need to build features rapidly).

comment 8y ago · link · parent

> They are also complex

I would say the complexity is largely in deployment. Otherwise, I find microservices much simpler to reason about.

As an example, keeping a bunch of small, isolated microservices behind queues means that I can reason about them very locally. I know what data they own, I know their interfaces, and I don't really need to think 'outside' fo them - they just send other asynchronous messages out. I don't need to think about dependencies very much - if a downstream or upstream server fails it is irrelevant to the microservices, so long as the queueing system is up.

It's a bit more annoying to get infrastructure and whatnot set up, but not a ton.

> expensive

Maybe? Shouldn't finger grained scaling be cheaper in some cases?

> require much higher expertise

I don't really agree. Again, by keeping things small and by maintaining the ability to reason about components locally, I think that it's easier to work with microservices than monoliths.

> Due to the monolithic software architecture, it was difficult to add new features without affecting the entire system and it was quite complex to release new changes, since we had to rebuild and redeploy the entire product, even though we changed only a few lines of code. That resulted in high risk deployments which happened less frequently - new features got released slowly.

From the article. For a startup the ability to add features quickly is pretty important - especially early on.

I'm not advocating microservices first for every situation, but I've built systems microservice-first and it's been fine.

comment 8y ago · link · parent

The recommendations are benign if they are the ones that show up when a series ends. I have no issue with this - they can actually be helpful.

comment 8y ago · link · parent

Redis is like 0 for 3 from a CAP perspective as far as I understand it. Fine for a cache, but if you want a KV store you can rely on for some properties, it does not seem viable.

So redis is 'tried and true' but may not meet your constraints.

https://www.quora.com/What-is-Redis-in-the-context-of-the-CA...

I haven't read the Faster paper yet (planning to) so I don't know that it provides better guarantees. But I personally would like a simple-as-redis KV store that provides better guarantees.

edit: Ah, yeah, Faster doesn't seem to even really be directly comparable to Redis - seems more like rocksdb, and not a distributed system.

comment 8y ago · link · parent

Confused by why those issues are tied to serverless.

The only one that seems like it could even be related is the page loads being slower. But I'd be surprised if the issue were the serverless aspect of the architecture and not just that this software is apparently shoddy overall.

comment 8y ago · link · parent

Javascript meets the 'safe' definition in the article - memory safe.

comment 8y ago · link · parent

Javascript would not meet the 'fast' requirement, as expressed in the linked article.

comment 8y ago · link · parent

> the default filesystem used by the most popular distro.

Ubuntu doesn't use ecryptfs (or even support it afaik) by default.

comment 8y ago · link · parent

> but there are tools to secure an outdated app in other ways either.

Not really.

comment 8y ago · link · parent

I don't know of an abstraction that provides FaaS + Managed System other than serverless - what are you referring to?

comment 8y ago · link · parent

> I'm handling bugs very differently than network failures though, because network failures are usually temporary while bugs are usually (or even by definition) permanent.

Depends on the bug - there are transient bugs that are not networking related.

But let's assume it's a "hard error" ie: a consistently failing bug. I would say where that bug is makes a huge difference.

If it's a critical feature, that bug should probably get propagated. If it's a non-critical feature, maybe you can recover.

By isolating your state across a network boundary, recovery failure is made much simpler (because you do not need to unwind to a 'safe point' - the safe point is your network boundary).

But it often depends how you do it. I personally prefer to write microservices that use queues for the vast majority of interactions. This makes fault isolation particularly trivial (as you move retry logic to the queue) and it scales very well.

If you build lots of microservices with synchronous communications I think you'll run into a lot more complexity.

Still, I maintain that faults were already something to be handled, and that a network bound encourages better fault handling by effectively forcing it upon you.

comment 8y ago · link · parent

> No server to manage is the least important part of it all.

OK, well it's the most important part for me. I don't want to manage patching a box.

comment 8y ago · link · parent

This is what I was saying though.

Yes, you have to handle the failure case of "network call". Microservices add this failure case. But you already had to handle the case of "code blew up because of a bug".

By forcing you to handle comm errors like network failure, you also force people, implicitly, to handle "code blew up because of a bug" errors. Even though it adds a second error case, you pretty much handle them the same way in the same place.

There was always an error case - the fact that code may blow up.

1
145146147
164