With Alibaba, Pivotal and Lightbend on board, Reactive flexes its ROI muscle in the microservices world

Comment

GettyImages 185502341
Image Credits: CSA-Archive / Getty Images

Mahendra Ramsinghani

Contributor

Mahendra Ramsinghani is the founder of Secure Octane Investments, investing in cloud infrastructure and security startups. When he is not investing, he is busy writing blogs and books. His third book “The Resilient Founder” will be released in 2022.

More posts from Mahendra Ramsinghani

The Linux Foundation recently announced the launch of the Reactive Foundation. Its founding members are Alibaba, Lightbend, Pivotal and Netifi.* So what exactly is this Reactive Kool-Aid, and why are all these companies guzzling it down so fast?

If you buy the premise that developers live in a cloud-native microservices world, then you also understand that most applications are distributed and elastic. The compute is spread across clusters, as is all the data. It could be a few users, or a spike of thousands. Systems need to be architected to handle these spikes. Yet the dark secret of microservices is complexity — the management of resources, costs, performance and latency remain a challenge.

If we break down any application into hundreds of moving parts (such as containers and microservices), then we better have an elegant way to manage those moving parts. These services need to talk to each other, exchange data and ensure that overall performance is reliable, at all times. Easier said than done.

The “big unsolved problem of the cloud”

According to Daniel Berg, Distinguished Engineer at IBM Cloud, “The network is the unsolved problem of the cloud…. We need the network to be a first-class citizen of a cloud system.” Why does the network remain a problem? Is it because we fall back on our old ways, when we need to rethink the new? We have designed the car with the big clunky wheels of a horse buggy. Conceptually, it sounds fine — but it can be a pretty rough ride.

In the layered cake of network protocols, we have the middle layer of transportation (Transmission Control Protocol / Internet Protocol or TCP/IP), and right at the top, we have the application layer. We use a protocol called hypertext transfer protocol (or HTTP) to make sure the web applications can talk to each other. TCP was born in 1974 and is called a “chatty protocol” — it has to go back and forth many times just to do some basic stuff. A TCP joke circulating around proves this point.

HTTP Joke

HTTP came in 15 years later, in 1989, and was used to serve documents in a client-server era. This was when we all had desktops being cooled with whirring fans. We would use a Netscape browser to launch a web page (hypertext) and the web-server would say, “Wait a sec – let me fetch that for you.”

Three decades later, we are trying to make do with HTTP, when the compute layer has exploded. Does HTTP work in the world of millions of interactions with machine-to-machine communications? Our mobile, IoT and edge devices are not quite requesting pages and walls of text. And there is no client-server as much as peer-to-peer exchange. But the network layer is stuck with us and we are trying to make sure these microservices can stay put using some archaic methodologies. “As much as 89% of all microservices architecture is based on HTTP, says Stéphane Maldini, principal software engineer at Pivotal. Pivotal is one of the founding members of the Reactive Foundation. In the process, we are creating a big trade-off in efficiency. We are still using two cans and a piece of string to communicate, when we should use the next iPhone.

HTTP is unsuitable for microservices

If we use HTTP in the micro-services world, we have fundamental challenges. For one, there is no flow control — “which means that data flows from a fire hose,” says Robert Roeser, co-founder of Netifi. Because the data can be dumped at a rapid pace, and multiple threads are opened up, we end up building control features to ensure the application does not crash.

Stuff like circuit breakers, retry logic, thundering herd (where a large number of processes wake up, but only one wins, often leading to freezing up) needs to be managed effectively. In HTTP, everything is a request / response, but if we look at a simple notification for an app, we don’t need to keep polling all the time. The request is like a grumpy kid sitting in the backseat whimpering, “Are we there yet?,” when the journey has just begun.

Such inefficient mechanisms cause a huge waste of compute resources when we use the wrong protocol. IBM documented the inefficiency of microservices and concluded that the performance of the microservices is ~ 79% (s)lower than the monolithic model. “We identified that Node.js and Java EE runtime libraries for handling HTTP communication consumed significantly more CPU cycles in the microservice model than in the monolithic one,” conclude the researchers.

Goodbye HTTP, hullo Reactive

The Reactive Foundation sits under the Linux Foundation and aims to accelerate the next generation of networked technologies. It espouses the merits of Reactive Programming Frameworks and builds the community. Ryland Degnan, chair of the Reactive Foundation and co-founder of Netifi, lived the HTTPain while he was a member of the Netflix edge platform.

Ryland understands scale, latency and user experience better than most people. At Netflix, the platform would have billions of requests from over several hundred million members. He says, “We live in a multi-dimensional universe where user experience matters. Developers have to deal with three axes of (a) deployments (b) frameworks and (c) protocols. Spotty connections are unacceptable. Why can’t we pick the stream up from where you left off? If we do that alone, we reduce 90% of our infrastructure.”

Indeed, Facebook has adopted RSocket to reduce the dropped connections over mobile network hops and reduced its edge infrastructure significantly. Steve Gury, a software engineer at Facebook speaking at SpringOne Platform said, “The future is R-Socket.”

Reactive programming is a paradigm shift at the architectural level. It’s about speed and performance. One of the major strengths of Reactive is asynchronous I/O, which allows reduction of edge infrastructure by orders of magnitude.

Andy Shi, developer advocate at AliCloud (a unit of Alibaba), is one of the founding members of the Reactive Foundation. He says, “Alibaba has thousands of developers as we are one of the world’s biggest e-commerce platforms. As we adopt microservices and see that compute is utilized only around 10%, throwing more infrastructure at the service mesh is not the answer. Pods are talking to each other using REST API which is not the way to go.”

REST APIs require multiple endpoints and round trips to get the data. Another founding member of the Reactive Foundation, Viktor Klang, deputy CTO at Lightbend, has been evangelizing Reactive for well over a decade, and feels like the time has finally come. “Our systems need to produce results in the required time frame. Imagine if you could compute an answer to a grand question — like the meaning of life — but if the answer is delivered after you die, the system has failed,” he says.

Comparing service meshes and use cases

While Istio is the 18-wheeler truck best suited for lift and shift, RSocket is the Ferrari — speed and elegance. Experts foresee a world where the two may coexist. Yet there are applications, such as IoT use cases, where RSocket has a clear edge (pun intended). Istio offers load balancing, service discovery, logging and traffic management but with heavy overhead.

In studies, Netifi was able to process 16X more requests and delivered four times higher throughput in comparison while maintaining three times better latency — 372% faster throughput with 300% less latency. “Netifi has the potential to be like a Cisco — the router of the microservices,” says Creighton Hicks, investor at Dell Technology Capital.

Istio was launched by Google, IBM and Lyft, so it is a strong incumbent and with serious brand cachet. But when the likes of Alibaba and Facebook start to showcase the RSocket ROI, the fun has just begun. During a recent presentation in London, the Reactive mafia was in full swing. Ondrej Lehecka, a software engineer at Facebook, and Andy Shi talked about how RSocket is addressing real-world architectural challenges. Shi said, “RSocket is designed to shine in the era of microservice and IoT devices. Projects built on top of RSocket protocol and Reactive streams in general will disrupt the landscape of microservices architecture. The Reactive Foundation is the hub of these exciting projects.”

*Mahendra Ramsinghani is an investor in Netifi.

More TechCrunch

The deck included some redacted numbers, but there was still enough data to get a good picture.

Pitch Deck Teardown: Cloudsmith’s $15M Series A deck

The company is describing the event as “a chance to demo some ChatGPT and GPT-4 updates.”

OpenAI’s ChatGPT announcement: What we know so far

Unlike ChatGPT, Claude did not become a new App Store hit.

Anthropic’s Claude sees tepid reception on iOS compared with ChatGPT’s debut

Welcome to Startups Weekly — Haje‘s weekly recap of everything you can’t miss from the world of startups. Sign up here to get it in your inbox every Friday. Look,…

Startups Weekly: Trouble in EV land and Peloton is circling the drain

Scarcely five months after its founding, hard tech startup Layup Parts has landed a $9 million round of financing led by Founders Fund to transform composites manufacturing. Lux Capital and Haystack…

Founders Fund leads financing of composites startup Layup Parts

AI startup Anthropic is changing its policies to allow minors to use its generative AI systems — in certain circumstances, at least.  Announced in a post on the company’s official…

Anthropic now lets kids use its AI tech — within limits

Zeekr’s market hype is noteworthy and may indicate that investors see value in the high-quality, low-price offerings of Chinese automakers.

The buzziest EV IPO of the year is a Chinese automaker

Venture capital has been hit hard by souring macroeconomic conditions over the past few years and it’s not yet clear how the market downturn affected VC fund performance. But recent…

VC fund performance is down sharply — but it may have already hit its lowest point

The person who claims to have 49 million Dell customer records told TechCrunch that he brute-forced an online company portal and scraped customer data, including physical addresses, directly from Dell’s…

Threat actor says he scraped 49M Dell customer addresses before the company found out

The social network has announced an updated version of its app that lets you offer feedback about its algorithmic feed so you can better customize it.

Bluesky now lets you personalize main Discover feed using new controls

Microsoft will launch its own mobile game store in July, the company announced at the Bloomberg Technology Summit on Thursday. Xbox president Sarah Bond shared that the company plans to…

Microsoft is launching its mobile game store in July

Smart ring maker Oura is launching two new features focused on heart health, the company announced on Friday. The first claims to help users get an idea of their cardiovascular…

Oura launches two new heart health features

Keeping up with an industry as fast-moving as AI is a tall order. So until an AI can do it for you, here’s a handy roundup of recent stories in the world…

This Week in AI: OpenAI considers allowing AI porn

Garena is quietly developing new India-themed games even though Free Fire, its biggest title, has still not made a comeback to the country.

Garena is quietly making India-themed games even as Free Fire’s relaunch remains doubtful

The U.S.’ NHTSA has opened a fourth investigation into the Fisker Ocean SUV, spurred by multiple claims of “inadvertent Automatic Emergency Braking.”

Fisker Ocean faces fourth federal safety probe

CoreWeave has formally opened an office in London that will serve as its European headquarters and home to two new data centers.

CoreWeave, a $19B AI compute provider, opens European HQ in London with plans for 2 UK data centers

The Series C funding, which brings its total raise to around $95 million, will go toward mass production of the startup’s inaugural products

AI chip startup DEEPX secures $80M Series C at a $529M valuation 

A dust-up between Evolve Bank & Trust, Mercury and Synapse has led TabaPay to abandon its acquisition plans of troubled banking-as-a-service startup Synapse.

Infighting among fintech players has caused TabaPay to ‘pull out’ from buying bankrupt Synapse

The problem is not the media, but the message.

Apple’s ‘Crush’ ad is disgusting

The Twitter for Android client was “a demo app that Google had created and gave to us,” says Particle co-founder and ex-Twitter employee Sara Beykpour.

Google built some of the first social apps for Android, including Twitter and others

WhatsApp is updating its mobile apps for a fresh and more streamlined look, while also introducing a new “darker dark mode,” the company announced on Thursday. The messaging app says…

WhatsApp’s latest update streamlines navigation and adds a ‘darker dark mode’

Plinky lets you solve the problem of saving and organizing links from anywhere with a focus on simplicity and customization.

Plinky is an app for you to collect and organize links easily

The keynote kicks off at 10 a.m. PT on Tuesday and will offer glimpses into the latest versions of Android, Wear OS and Android TV.

Google I/O 2024: How to watch

For cancer patients, medicines administered in clinical trials can help save or extend lives. But despite thousands of trials in the United States each year, only 3% to 5% of…

Triomics raises $15M Series A to automate cancer clinical trials matching

Welcome back to TechCrunch Mobility — your central hub for news and insights on the future of transportation. Sign up here for free — just click TechCrunch Mobility! Tap, tap.…

Tesla drives Luminar lidar sales and Motional pauses robotaxi plans

The newly announced “Public Content Policy” will now join Reddit’s existing privacy policy and content policy to guide how Reddit’s data is being accessed and used by commercial entities and…

Reddit locks down its public data in new content policy, says use now requires a contract

Eva Ho plans to step away from her position as general partner at Fika Ventures, the Los Angeles-based seed firm she co-founded in 2016. Fika told LPs of Ho’s intention…

Fika Ventures co-founder Eva Ho will step back from the firm after its current fund is deployed

In a post on Werner Vogels’ personal blog, he details Distill, an open-source app he built to transcribe and summarize conference calls.

Amazon’s CTO built a meeting-summarizing app for some reason

Paris-based Mistral AI, a startup working on open source large language models — the building block for generative AI services — has been raising money at a $6 billion valuation,…

Sources: Mistral AI raising at a $6B valuation, SoftBank ‘not in’ but DST is

You can expect plenty of AI, but probably not a lot of hardware.

Google I/O 2024: What to expect