استفاده از الگوریتم های اجماع برای بهینه سازی معماری میکروسرویس
محورهای موضوعی : پردازش چند رسانه ای، سیستمهای ارتباطی، سیستمهای هوشمنداسماعیل صادقی هفشجانی 1 , محمود دی پیر 2 * , علی برومندنیا 3
1 - گروه مهندسی کامپیوتر، واحد تهران جنوب، دانشگاه آزاد اسلامی، تهران، ایران
2 - گروه مهندسی کامپیوتر، واحد تهران جنوب، دانشگاه آزاد اسلامی، تهران، ایران
3 - گروه مهندسی کامپیوتر، واحد تهران جنوب، دانشگاه آزاد اسلامی، تهران، ایران
کلید واژه: الگوریتمهای اجماع, پروتکلPaxos , تحمل خطا, تخصیص منابع, میکروسرویس, مقیاسپذیری,
چکیده مقاله :
معماریهای میکروسرویس (MSAs) به یک رویکرد اساسی برای ایجاد سیستمهای توزیعشده مقیاسپذیر تبدیل شدهاند. با این حال، دستیابی به سازگاری و تحمل خطا همچنان یک چالش بزرگ است. این مطالعه با هدف بهبود عملکرد و قابلیت اطمینان سیستمهای میکروسرویس با ادغام الگوریتمهای اجماع Paxos انجام شده است. روششناسی ما شامل استفاده از Paxos برای تضمین سازگاری و تحمل خطا در سیستمهای میکروسرویس میباشد. شبیهسازیها و مطالعات موردی برای ارزیابی عملکرد رویکرد ما انجام شده است. نتایج نشان میدهد که Paxos تأخیر را کاهش داده، رقابت منابع را به حداقل میرساند و سازگاری حالت را در خدمات توزیعشده تضمین میکند. بهینهسازی مبتنی بر Paxos نه تنها عملکرد را بهبود میبخشد، بلکه قابلیت اطمینان و دسترسی سیستمهای میکروسرویس را نیز افزایش میدهد. این مطالعه مزایای قابل توجهی از Paxos در بهینهسازی استقرارهای میکروسرویس را نشان میدهد.
Introduction: Microservice architectures (MSAs) have transformed the development of scalable distributed systems by breaking monolithic applications into smaller, independent services. Despite their advantages in scalability, flexibility, and maintenance, MSAs face significant challenges in achieving state consistency and fault tolerance. This study aims to address these issues by leveraging Paxos consensus algorithms to enhance the reliability and performance of microservice systems.
Method: The proposed approach integrates Paxos consensus mechanisms into microservice systems to ensure state consistency and fault tolerance. Simulations and real-world case studies were conducted, comparing our methodology with existing optimization frameworks, such as SPNs and NSGA-II. This method emphasizes dynamic resource allocation and automated scaling under various workload conditions.
Results: The results demonstrate that Paxos-based optimization reduces latency by 25%, increases throughput by 30%, and enhances resource utilization efficiency by 20%. Additionally, it achieves a high consistency rate of 99.9%, ensuring reliable state updates across distributed nodes. The system also showed robust fault tolerance, maintaining 95% operational success during node failures.
Discussion: The findings highlight the superiority of Paxos in optimizing microservice deployments, particularly in dynamic cloud environments. This study underscores the importance of integrating consensus protocols into optimization frameworks for improved performance, reliability, and scalability. Future research could explore further enhancements in energy efficiency, security measures, and deployment across diverse cloud scenarios.