Skip to main content
QUICK REVIEW

[Paper Review] The Architectural Implications of Microservices in the Cloud

Yu Gan, Christina Delimitrou|arXiv (Cornell University)|May 25, 2018
Cloud Computing and Resource ManagementComputer Science18 references4 citations
TL;DR

This paper evaluates the architectural implications of cloud microservices by building and analyzing an end-to-end movie streaming service composed of tens of microservices. It finds that microservices increase sensitivity to single-thread performance, elevate instruction cache pressure in communication-heavy components, and shift the trade-off between big and small servers, favoring high single-core performance for low-latency workloads.

ABSTRACT

Cloud services have recently undergone a shift from monolithic applications to microservices, with hundreds or thousands of loosely-coupled microservices comprising the end-to-end application. Microservices present both opportunities and challenges when optimizing for quality of service (QoS) and cloud utilization. In this paper we explore the implications cloud microservices have on system bottlenecks, and datacenter server design. We first present and characterize an end-to-end application built using tens of popular open-source microservices that implements a movie renting and streaming service, and is modular and extensible. We then use the end-to-end service to study the scalability and performance bottlenecks of microservices, and highlight implications they have on the design of datacenter hardware. Specifically, we revisit the long-standing debate of brawny versus wimpy cores in the context of microservices, we quantify the I-cache pressure they introduce, and measure the time spent in computation versus communication between microservices over RPCs. As more cloud applications switch to this new programming model, it is increasingly important to revisit the assumptions we have previously used to build and manage cloud systems.

Motivation & Objective

  • To investigate how the shift from monolithic to microservices architectures affects system bottlenecks and datacenter server design.
  • To quantify the performance implications of microservices, particularly on instruction cache pressure and communication-to-computation ratios.
  • To evaluate the trade-offs between high-performance (brawny) and low-power (wimpy) server architectures in microservices workloads.
  • To assess the impact of frequency scaling and hardware heterogeneity on end-to-end tail latency in microservice-based systems.
  • To characterize the performance behavior of individual microservices and identify critical path contributors in a real-world end-to-end service.

Proposed method

  • Built a representative end-to-end movie streaming and renting service using 33 open-source microservices in multiple languages (C, C++, Java, Python, Go, etc.) and frameworks (Thrift, REST, nginx, MongoDB, etc.).
  • Deployed the service on a local cluster of 2-socket, 40-core x86 servers and a Cavium ThunderX platform with 1.8GHz in-order cores.
  • Measured end-to-end tail latency, throughput, and CPU usage across varying workloads (QPS from 100 to 2400) and frequency scaling (using RAPL).
  • Used performance profiling tools (vTune) to measure instruction cache misses (L1i MPKI), D-TLB, LLC misses, and kernel vs. user-mode execution time.
  • Analyzed communication patterns via RPCs using Apache Thrift, and quantified the ratio of computation to communication time across microservices.
  • Compared results against monolithic versions of the same workloads (e.g., MongoDB, Xapian, nginx) to isolate microservices-specific effects.

Experimental results

Research questions

  • RQ1How does the microservices architecture affect the ratio of computation to communication, and what are the performance implications?
  • RQ2What is the impact of frequency scaling on end-to-end tail latency in microservices compared to monolithic workloads?
  • RQ3How does instruction cache pressure (L1i MPKI) vary across microservices, and which components contribute most to cache misses?
  • RQ4What are the performance trade-offs between high-end x86 servers and low-power ARM-based SoCs (e.g., ThunderX) in microservices workloads?
  • RQ5To what extent do microservices improve or degrade performance predictability and system bottlenecks compared to monolithic designs?

Key findings

  • Microservices exhibit significantly higher sensitivity to single-thread performance than monolithic workloads, with tail latency increasing more severely under frequency scaling.
  • The end-to-end service on ThunderX (1.8GHz, 48 cores) saturated at much lower throughput (around 1000 QPS) compared to the high-end x86 server, which sustained over 2000 QPS at 1.8GHz.
  • L1 instruction cache miss rate (MPKI) is highest in communication-heavy components like Thrift framework and nginx, while individual microservices show low i-cache pressure due to small code footprints.
  • Kernel-mode execution time is a major contributor to latency, with Thrift framework accounting for a significant portion of i-cache misses.
  • The communication-to-computation ratio in microservices is substantially higher than in monoliths, making performance more dependent on low-latency inter-service communication.
  • Despite lower overall code size, microservices as a whole induce non-trivial i-cache pressure, especially in the RPC layer, challenging assumptions about their hardware efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.