Asynchronous Messaging Architectures for Distributed Job Processing Systems

Authors

  • BharathVamsi Reddy Munisif Java Developer, USA Author

DOI:

https://doi.org/10.15680/IJCTECE.2022.0505009

Keywords:

asynchronous messaging, message queue, publish subscribe, distributed job processing, event driven architecture, dead letter queue, backpressure, event sourcing, consumer scaling, message broker

Abstract

Distributed job processing systems, including background task pipelines, batch workflow engines, and asynchronous request offloading layers, depend on messaging infrastructure to decouple producers of work from the consumers that execute it. As job volume grows and workloads diversify across priority tiers, retry semantics, and downstream dependencies, the choice of messaging pattern materially affects throughput, latency, failure isolation, and operating cost. This article presents a structured study of eight asynchronous messaging architecture patterns for distributed job processing: competing consumers, publish subscribe fan-out, priority lane work queues, dead letter and poison message handling, the transactional outbox pattern, saga coordination via message choreography, backpressure and rate limiting, and event sourcing with log replay. A reference architecture combines these patterns into a single job processing pipeline spanning ingestion, queuing, parallel consumption, failure isolation, and downstream delivery. A benchmark study compares five widely used messaging platforms, a distributed log broker, a traditional AMQP broker, and three managed cloud queue and topic services, across sustained throughput, consumer lag under varying parallelism, delivery latency, and cost per million messages, with results presented in a series of data tables and supporting charts. The study finds that log based brokers sustain an order of magnitude higher single node throughput than traditional queue brokers at the cost of more complex consumer group management, that consumer lag falls sharply with parallelism up to a point of diminishing returns tied to partition or queue count, and that managed cloud queue services offer the lowest operating cost for moderate volume, latency tolerant workloads while self-managed log based brokers become more cost effective at very high sustained volume. The article closes with a discussion of limitations and open research directions, including standardized cross platform message schemas, operating cost forecasting under bursty job arrival patterns, and testing methodology for message driven systems with many independently deployed consumers.

31 21

References

1. Amazon Web Services. (2021). Amazon SNS Developer Guide. Amazon Web Services technical documentation.

2. Amazon Web Services. (2021). Amazon SQS Developer Guide. Amazon Web Services technical documentation.

3. Bellemare, A. (2020). Building Event-Driven Microservices: Leveraging Organizational Data at Scale. O'Reilly Media.

4. Fowler, M. (2005). Event sourcing. martinfowler.com.

5. Fowler, M. (2015). Microservices: a definition of this new architectural term. martinfowler.com.

6. Google Cloud. (2021). Cloud Pub/Sub documentation. Google Cloud technical documentation.

7. Helland, P. (2007). Life beyond distributed transactions: an apostate's opinion. In Proceedings of the 3rd Biennial Conference on Innovative Data Systems Research (CIDR), pp. 132 to 141.

8. Hohpe, G. (2005). Starbucks does not use two-phase commit. IEEE Software, 22(2), pp. 18 to 20.

9. Hohpe, G., and Woolf, B. (2003). Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions. Addison-Wesley.

10. Kleppmann, M. (2017). Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems. O'Reilly Media.

11. Kreps, J., Narkhede, N., and Rao, J. (2011). Kafka: a distributed messaging system for log processing. In Proceedings of the 6th International Workshop on Networking Meets Databases (NetDB).

12. Microsoft. (2021). Azure Service Bus documentation. Microsoft technical documentation.

13. Narkhede, N., Shapira, G., and Palino, T. (2017). Kafka: The Definitive Guide: Real-Time Data and Stream Processing at Scale. O'Reilly Media.

14. National Institute of Standards and Technology. (2011). The NIST definition of cloud computing. Special Publication 800 to 145. U.S. Department of Commerce.

15. Newman, S. (2015). Building Microservices: Designing Fine Grained Systems. O'Reilly Media.

16. Reactive Manifesto Authors. (2014). The Reactive Manifesto, version 2.0.

17. Richardson, C. (2018). Microservices Patterns: With Examples in Java. Manning Publications.

18. Sbarski, P., and Kroonenburg, S. (2017). Serverless Architectures on AWS: With Examples Using AWS Lambda. Manning Publications.

19. Villamizar, M., Garces, O., Castro, H., Verano, M., Salamanca, L., Casallas, R., and Gil, S. (2016). Evaluating the monolithic and the microservice architecture pattern to deploy web applications in the cloud. In 2016 IEEE 10th Colombian Computing Conference (10CCC), pp. 1 to 6. IEEE.

20. Vogels, W. (2009). Eventually consistent. Communications of the ACM, 52(1), pp. 40 to 44.

Downloads

Published

2022-10-18

How to Cite

Asynchronous Messaging Architectures for Distributed Job Processing Systems. (2022). International Journal of Computer Technology and Electronics Communication, 5(5), 5794-5812. https://doi.org/10.15680/IJCTECE.2022.0505009

Most read articles by the same author(s)