3 ms·
>Microservices are also lighter than SOA. While SOA services are deployed to servers and virtual machines (VMs), microservices are deployed in containers. The p
by coldtea 9y ago
>Microservices are also lighter than SOA. While SOA services are deployed to servers and virtual machines (VMs), microservices are deployed in containers. The protocols are also lighter. This makes microservices more flexible than SOA
Both of these are wrong.
A SOA service of yore would be much lighter (in CPU, if not memory) than a microservice of today. Heck, it had to be -- in the 90s they couldn't afford to run a JS runtime to power their service. It was either C++ or Java.
The protocols were also lighter, then, not now. Except if the author means simpler and easier to work with. Else, CORBA or DCOC are lighter than serializing to JSON and back.
- hvidgaard 9y agoThere is nothing about microservices that dictates the use of JS. Our microservices is written in .Net, and I could write it in C++ if I wanted to.
- coldtea 9y agoSure. But it's very common.
- GrumpyNl 9y agoIn the eighties we used turbo pascal, 20 years later we found out we were writing microservices. For us it was needed because you could only write programs under 720Kb, So send a message to another program over a 5Mb network en let that program handle a specific task and port the results back to the main program.
- icebraining 9y agoIs a program running in the early versions of the JVM really faster than JS on the current version of V8? Current JS engines are very fast. By the way, Server Side JS was a thing in the 90s, though little used. On the other hand, Perl was quite common on websites, despite being much slower than C/C++.
- DougWebb 9y agoPerl could be nearly as fast as C/C++, depending on what your service does and how you wrote it. The early days of running a cgi script for every request had awful performance, caused by the overhead of loading and compiling the Perl code before executing it. But there were ways to avoid that by pre-loading the code. One way was to use Mod_Perl on Apache, for example. I wrote a number of services that way, and also wrote my own pure-Perl standalone http server that could pre-load an entire web application. The other key factor was to use canonical expressions when writing your Perl code. There was always "more than one way to do it", but there were only a few ways that the compiler would recognize and use optimized functions for. Once you learned to take advantage of that, you could get your code running mostly in hand-written C functions. It wasn't as fast as native C because of the way Perl variables were represented, but it could be pretty close.
- tannhaeuser 9y agoThe "trick" is to use HTTP caching (build right into the protocol) so that not every request needs to trigger full-page rebuilding. If you have eg. mod_cache (or external reverse caches) enabled, your page composition script could be as slow as it wants, it doesn't really matter.
- DougWebb 9y agoFor static or static-ish content, absolutely. But I was talking about (and writing) web applications and web services, where the responses generally aren't cachable.
- matwood 9y agoThe hotspot JVM was/is very fast.