Skip to main content
QUICK REVIEW

[Paper Review] Microservices: Granularity vs. Performance

Dharmendra Shadija, Mo Rezai|arXiv (Cornell University)|Sep 26, 2017
Software System Performance and ReliabilityComputer Science11 references7 citations
TL;DR

This paper investigates the trade-off between microservice granularity and application performance in cloud and IoT environments. Using simulation, it compares single-container and multi-container deployments of a university admissions system, finding negligible latency differences between the two, suggesting that fine-grained microservices do not significantly degrade performance when properly orchestrated in cloud-native architectures.

ABSTRACT

Microservice Architectures (MA) have the potential to increase the agility of software development. In an era where businesses require software applications to evolve to support software emerging requirements, particularly for Internet of Things (IoT) applications, we examine the issue of microservice granularity and explore its effect upon application latency. Two approaches to microservice deployment are simulated; the first with microservices in a single container, and the second with microservices partitioned across separate containers. We observed a neglibible increase in service latency for the multiple container deployment over a single container.

Motivation & Objective

  • To investigate the impact of microservice granularity on application latency in cloud and IoT environments.
  • To compare performance between monolithic container deployment and distributed container deployment of microservices.
  • To provide practical guidelines for architects designing or migrating to microservice-based cloud applications.
  • To explore the implications of microservice deployment patterns in resource-constrained IoT scenarios, particularly with edge and cloudlet architectures.
  • To identify open research challenges in autonomous orchestration of microservices based on environmental constraints like network bandwidth.

Proposed method

  • Simulated a university admissions application using two deployment models: microservices in a single container and microservices in separate containers.
  • Measured service invocation response times under both deployment configurations to assess performance impact.
  • Applied principles of Microservice Architecture (MSA) and Domain-Driven Design (DDD) to guide service decomposition and granularity decisions.
  • Evaluated the effects of inter-service communication overhead, particularly in networked environments with potential latency and bandwidth constraints.
  • Analyzed the role of edge computing and cloudlets in IoT scenarios, where microservices may be co-located on local devices to reduce network dependency.
  • Used ZeroMQ as a reference for inter-service communication protocols in distributed microservice environments.

Experimental results

Research questions

  • RQ1How does microservice granularity affect application latency in cloud-based deployments?
  • RQ2What is the performance difference between deploying microservices in a single container versus separate containers?
  • RQ3How do network communication overheads impact end-to-end response time in fine-grained microservice architectures?
  • RQ4What are the implications of microservice deployment patterns in IoT environments with constrained network resources?
  • RQ5How can environmental factors such as network bandwidth and device proximity influence optimal microservice granularity?

Key findings

  • The performance difference in service invocation latency between single-container and multi-container deployments was negligible, indicating that fine-grained microservices do not incur significant performance penalties in cloud environments.
  • Microservices deployed in separate containers showed only minimal increase in latency compared to co-located microservices, suggesting that network communication overhead is manageable in well-architected systems.
  • The study found that functional decomposition based on business capabilities and team structure is more critical than strict performance-driven granularity for microservice design.
  • In IoT scenarios, especially with edge computing and cloudlets, coarser-grained services may be preferable to reduce network communication and improve resilience.
  • The research highlights that microservice granularity must be context-aware, influenced by deployment environment, network constraints, and system reliability requirements.
  • The findings support the feasibility of fine-grained microservices in cloud-native systems, provided that communication patterns and deployment strategies are carefully managed.

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.