Microservice granularity recognition method based on user story
With the change of software architecture paradigm,micro-service architecture,an emerging technology,is widely used by large enterprises and practitioners because of its high degree of autonomy,portability and scalability.However,the issue of micro-service granularity in micro-service architecture is difficult to define and there is still no effective way to identify the granularity of micro-services.Based on the concept of user stories in the agile method and combining the functional with non-functional require-ments in the micro-service architecture,this paper presents a micro-service granularity model and uses the multi-objective optimization genetic algorithm to identify the granularity of micro-service.The results show that the proposed method is superior to the general genetic algorithm.The results can be used as a reference for the micro-service architecture stakeholders in evaluating the granularity of micro-services.