An Encryption Performance Evaluation betweenSpring Boot and Micronaut
As microservice architecture increasingly becomes the mainstream model for modern software development,ensuring secure and efficient communication between microservices has emerged as a pressing issue.The study comprehensively explores the performance and features of two mainstream microservice frameworks—Spring Boot and Micronaut—in the context of se-cure communication.Utilizing an experiment-driven research approach,we compare the imple-mentation and performance of various encryption algorithms(including AES,RSA,and ChaCha20)and authentication mechanisms(such as OAuth2 and JWT)within these two frame-works.The experimental results indicate that Micronaut slightly outperforms Spring Boot on most performance metrics,particularly in high-concurrency,data-intensive application scenarios.Additionally,we conducted a thorough security assessment using OWASP security standards as a case study.The research not only provides robust practical guidance for secure communication in microservices but also serves as an important reference for related theoretical research and practi-cal applications.