4 ms·
It may actually become a trend. For well known reasons: - Community - Nginx served us well for almost a decade. But it didn’t adapt to current development bes
by dmicher 6y ago
It may actually become a trend. For well known reasons:
- Community
- Nginx served us well for almost a decade. But it didn’t adapt to current development best-practices
- Operationally Nginx was quite expensive to maintain
- C++
- Observability and monitoring
etc...
- freedomben 6y agoI'd add another reason: so many people only use nginx as a reverse proxy, and the proxy configuration feels duct-taped on sometimes. Envoy being written as a proxy first makes it a better interface IMHO.
- ci5er 6y agoIs C++ generally considered to be "better"? I've always looked at it (esp. with STL) as kind of a "Swiss-Army-Chainsaw" and you were going to shoot your eye out. Maybe that view is old and things are better - but I learned a while back that sending a young gun into a C++ application's code-base would lead to a world of pain) Maybe that learning is no longer accurate? What do you think?
- dmicher 6y agoWhen we are comparing C, Lua (Nginx) and C++ (Envoy). Yes C++ is better :).
- ci5er 6y agoHonest question: In what way? Platform wars are over-ish. We have the same compile targets. What they call "Undefined Behavior) is relegated to ... well ... platforms we are not supporting. C is fast - simple - easy(ish) to learn, and easy to "fuzz" in testing. I can't speak to LUA - but C++ looks like a mine-field (to me). Why do you declare that C++ is "better"? (Seriously interested - I don't even know enough these days to have a debate. I just gave up on the C++ hell-hole years (decades?) ago, and maybe should have kept up)
- dmicher 6y agoI'm not declaring that C++ is better for everything. In our case it is better because it makes this part of the infrastructure more sustainable: there are more engineers who can code well in C++ vs C in our company and industry overall. Also it is easier to code in C++ as it is general purpose programming language with a lot of libraries available, open source projects, community around it etc.
- ci5er 6y agoMaybe we program in different verticals. I have not found it to be so. (I have still upvoted your comment).
- dmicher 6y agoI value your opinion.
- ci5er 6y agoWell, that is very gracious - esp. here. I value yours. You have different experiences than I do - so our conclusions will differ. That said - I "feel" as if C++ is a dangerous serpent of a language. Maybe I need to spend 6 months re-acquainting myself in complex environments with more developers than just me, and re-evaluate that presumption on a medium-size project. Thank you.
- Legogris 6y agoYour happiness is important to me.
- user5994461 6y agoI think what they're trying to say is that developing plugins for nginx in Lua is not great. It's not a rant about languages. This has to do with nginx not having the required features (features blocked behind the paid edition or GRPC non existent), forcing to develop plugins in Lua to compensate (the only supported language) and Lua is too slow for this sort of stuff (processing Gbps of traffic in real time is no joke).
- Shorel 6y agoIt depends on the team. C++ can be better. It can also be worse.