Startups

Get Small To Get Big Through Microservices

Comment

Image Credits:

Matt Miller

Contributor

Matt Miller is a partner at Sequoia Capital.

If we trace a path that starts with Gutenberg’s use of moveable type to Malcom McLean’s invention of the shipping container, we start to recognize a very interesting pattern: Each new layer of abstraction and standardization creates tremendous value out of the resulting increases in scale and efficiency.

Today’s digital innovators can trace a similar historical path that starts with mainframe computers and monolithic applications and then, step-by-step, reveals software’s interchangeable parts until we arrive at today’s cloud-based era of microservices and continuous integration.

Microservices is an approach to building software that shifts away from large monolithic applications toward small, loosely coupled and composable autonomous pieces. The benefit of this abstraction is specialization, which drives down costs to develop and drives up agility and quality — while operating much more resilient systems.

This approach is not new; Amazon and Google have been using it for more than a decade. Container technologies (like Docker), APIs and the availability of cloud infrastructure have made microservices something that is now practical for a much broader set of companies.

Companies like Airbnb, Disney, Dropbox, GE, Goldman Sachs and Twitter have seen development lead times cut by as much as 75 percent when using microservices. The concept sounds simple enough, but doing it is harder than it looks. This has given rise to a whole new ecosystem of companies and open-source software to help people with this transition.

V18
Click to enlarge

Sixty engineering leaders gathered recently at Sequoia’s Microservices Summit to share stories about what it took to implement microservices at companies like Google, Amazon, Microsoft, Twitter, Netflix, Disney, Wells Fargo, Dropbox, Amgen, Citi, Nasdaq, Medallia, HP, Okta, Gilt, Instacart and many others.

Here are the 10 best practices for building and deploying microservices.

Determine if you really need microservices

Not every application is complicated enough to warrant being broken into microservices. Martin Fowler and Ryan Murray from Thoughtworks cite a “microservice premium,” where in many use cases the complexity of microservices hampers the productivity of your team. There comes a point when your application becomes very complex or your team begins to grow past 50-75 engineers that the benefits of this architecture begin to take off.

Put your house in order

Continuous delivery and automation are more important than microservices. Small, agile teams who can integrate their work frequently, at least daily, are an important precursor to microservices. Being able to automate your systems and push code updates regularly are critical to deal with the complexity you will incur with this architecture.

Appoint a master artisan

If you do not design and manage your evolution to microservices, the result can be an uncontrollable sprawl. It is critical to have a person or a small team responsible for controlling architectural decisions and helping to ensure standards adoption.

Google has a small team of master artisans who understand how pieces fit together and help guide the creation of new services. Twitter’s Alex Roetter refers to this oversight as “applying the right amount of salt.” You never want to overpower the great innovation that is coming from the bottom up.

Map your microservices to business processes

Teams should have bounded context and systems should follow the ordinary flow of business.  Melvin Conway first came up with this principle in 1967, and it holds true today. When your services are not directly mapped, it makes troubleshooting or re-architecting in the future far more difficult.

Start every new product as a monolith

It is impossible to know the best way to divide the monolith until you can observe its usage. Once you have a sense for how your product will be used, you can decompose from there. Today, there is a bit of trial and error on sizing your services. There may be an opportunity in the future for someone to help with this process through software.

Move incrementally

Don’t throw away the monolith. This can have disastrous results. Take one piece at a time and break it off. Once that piece is working, move to the next natural piece. A few companies have found a more aggressive approach can lead to lost functionality and can make diagnosing issues difficult.

Create a shared repository

Consider creating one large shared repository of all services for teams to use in application development. You don’t want to have two or three active versions of a common service in use.  Your artisan(s) should help in managing this repository.

Apply more comprehensive monitoring

More pieces to manage make telemetry very important. The microservices monitoring landscape is very fragmented. There is not a clear winner, and some companies are building their own products. Microservices require a much more comprehensive monitoring effort than you have had with your monolith.

Improve security and governance

More surfaces and complexity increase the need for security and governance. Consider how you will authenticate who can speak to whom and identify illegitimate traffic. Who has the authority to work on certain services? Can all services be used for all tasks in your company? How are shared services billed or managed?

Reap the rewards 

When successfully implemented, microservices deliver huge increases in the speed and agility in which companies can build and deploy software. The cost to deliver an application is much less, and your systems will become more resilient. Development time can go from months to weeks.

If this sounds daunting, consider the alternative: longer development cycles, more brittle infrastructure and slower innovation than your competitors. Microservices are not for everyone, but — if implemented effectively — the results can be transformational in the creation of enduring companies.

More TechCrunch

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. Well,…

Startups Weekly: Drama at Techstars. Drama in AI. Drama everywhere.

Last year’s investor dreams of a strong 2024 IPO pipeline have faded, if not fully disappeared, as we approach the halfway point of the year. 2024 delivered four venture-backed tech…

From Plaid to Figma, here are the startups that are likely — or definitely — not having IPOs this year

Federal safety regulators have discovered nine more incidents that raise questions about the safety of Waymo’s self-driving vehicles operating in Phoenix and San Francisco.  The National Highway Traffic Safety Administration…

Feds add nine more incidents to Waymo robotaxi investigation

Terra One’s pitch deck has a few wins, but also a few misses. Here’s how to fix that.

Pitch Deck Teardown: Terra One’s $7.5M Seed deck

Chinasa T. Okolo researches AI policy and governance in the Global South.

Women in AI: Chinasa T. Okolo researches AI’s impact on the Global South

TechCrunch Disrupt takes place on October 28–30 in San Francisco. While the event is a few months away, the deadline to secure your early-bird tickets and save up to $800…

Disrupt 2024 early-bird tickets fly away next Friday

Another week, and another round of crazy cash injections and valuations emerged from the AI realm. DeepL, an AI language translation startup, raised $300 million on a $2 billion valuation;…

Big tech companies are plowing money into AI startups, which could help them dodge antitrust concerns

If raised, this new fund, the firm’s third, would be its largest to date.

Harlem Capital is raising a $150 million fund

About half a million patients have been notified so far, but the number of affected individuals is likely far higher.

US pharma giant Cencora says Americans’ health information stolen in data breach

Attention, tech enthusiasts and startup supporters! The final countdown is here: Today is the last day to cast your vote for the TechCrunch Disrupt 2024 Audience Choice program. Voting closes…

Last day to vote for TC Disrupt 2024 Audience Choice program

Featured Article

Signal’s Meredith Whittaker on the Telegram security clash and the ‘edge lords’ at OpenAI 

Among other things, Whittaker is concerned about the concentration of power in the five main social media platforms.

8 hours ago
Signal’s Meredith Whittaker on the Telegram security clash and the ‘edge lords’ at OpenAI 

Lucid Motors is laying off about 400 employees, or roughly 6% of its workforce, as part of a restructuring ahead of the launch of its first electric SUV later this…

Lucid Motors slashes 400 jobs ahead of crucial SUV launch

Google is investing nearly $350 million in Flipkart, becoming the latest high-profile name to back the Walmart-owned Indian e-commerce startup. The Android-maker will also provide Flipkart with cloud offerings as…

Google invests $350 million in Indian e-commerce giant Flipkart

A Jio Financial unit plans to purchase customer premises equipment and telecom gear worth $4.32 billion from Reliance Retail.

Jio Financial unit to buy $4.32B of telecom gear from Reliance Retail

Foursquare, the location-focused outfit that in 2020 merged with Factual, another location-focused outfit, is joining the parade of companies to make cuts to one of its biggest cost centers –…

Foursquare just laid off 105 employees

“Running with scissors is a cardio exercise that can increase your heart rate and require concentration and focus,” says Google’s new AI search feature. “Some say it can also improve…

Using memes, social media users have become red teams for half-baked AI features

The European Space Agency selected two companies on Wednesday to advance designs of a cargo spacecraft that could establish the continent’s first sovereign access to space.  The two awardees, major…

ESA prepares for the post-ISS era, selects The Exploration Company, Thales Alenia to develop cargo spacecraft

Expressable is a platform that offers one-on-one virtual sessions with speech language pathologists.

Expressable brings speech therapy into the home

The French Secretary of State for the Digital Economy as of this year, Marina Ferrari, revealed this year’s laureates during VivaTech week in Paris. According to its promoters, this fifth…

The biggest French startups in 2024 according to the French government

Spotify is notifying customers who purchased its Car Thing product that the devices will stop working after December 9, 2024. The company discontinued the device back in July 2022, but…

Spotify to shut off Car Thing for good, leading users to demand refunds

Elon Musk’s X is preparing to make “likes” private on the social network, in a change that could potentially confuse users over the difference between something they’ve favorited and something…

X should bring back stars, not hide ‘likes’

The FCC has proposed a $6 million fine for the scammer who used voice-cloning tech to impersonate President Biden in a series of illegal robocalls during a New Hampshire primary…

$6M fine for robocaller who used AI to clone Biden’s voice

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! Is it…

Tesla lobbies for Elon and Kia taps into the GenAI hype

Crowdaa is an app that allows non-developers to easily create and release apps on the mobile store. 

App developer Crowdaa raises €1.2M and plans a US expansion

Back in 2019, Canva, the wildly successful design tool, introduced what the company was calling an enterprise product, but in reality it was more geared toward teams than fulfilling true…

Canva launches a proper enterprise product — and they mean it this time

TechCrunch Disrupt 2024 isn’t just an event for innovation; it’s a platform where your voice matters. With the Disrupt 2024 Audience Choice Program, you have the power to shape the…

2 days left to vote for Disrupt Audience Choice

The United States Department of Justice and 30 state attorneys general filed a lawsuit against Live Nation Entertainment, the parent company of Ticketmaster, for alleged monopolistic practices. Live Nation and…

Ticketmaster antitrust lawsuit could give new hope to ticketing startups

The U.K. will shortly get its own rulebook for Big Tech, after peers in the House of Lords agreed Thursday afternoon to pass the Digital Markets, Competition and Consumer bill…

‘Pro-competition’ rules for Big Tech make it through UK’s pre-election wash-up

Spotify’s addition of its AI DJ feature, which introduces personalized song selections to users, was the company’s first step into an AI future. Now, Spotify is developing an alternative version…

Spotify experiments with an AI DJ that speaks Spanish

Call Arc can help answer immediate and small questions, according to the company. 

Arc Search’s new Call Arc feature lets you ask questions by ‘making a phone call’