Scenario-Based Microservice Retrieval Using Word2Vec

Shang Pin Ma, Yen Chuang, Ci Wei Lan, Hsi Min Chen, Chun-Ying Huang, Chia Yu Li

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations


Microservice architecture (MSA) is an emerging software architectural style, which differs fundamentally from the monolithic, layered architecture. During the development and maintenance of microservice systems, how to provide an effective service retrieval mechanism is a critical challenge to avoid the problems of rework and duplicate code. Meanwhile, nowadays, using the BDD (Behavior-Driven Development) method to develop microservices becomes more and more popular due to its agility and domain-driven characteristics. BDD is an agile software development approach emphasizing that test cases are written in a common language to include scenarios that describe the features of a target system. In this paper, we propose an approach, referred to as SMSR (Scenario-based MicroService Retrieval), to recommend appropriate microservices to users based on the user-written BDD test scenarios. The proposed service retrieval algorithm is based on word2vec, a widely-used machine learning method in NLP (Natural Language Processing), to perform service filtering and service similarity calculation. Experiment results show that SMSR is able to effectively retrieve appropriate microservices from the service repository.

Original languageAmerican English
Title of host publicationProceedings - 2018 IEEE 15th International Conference on e-Business Engineering, ICEBE 2018
PublisherInstitute of Electrical and Electronics Engineers Inc.
Number of pages6
ISBN (Electronic)9781538679920
StatePublished - 27 Dec 2018
Event15th International Conference on e-Business Engineering, ICEBE 2018 - Xi'an, China
Duration: 12 Oct 201814 Oct 2018

Publication series

NameProceedings - 2018 IEEE 15th International Conference on e-Business Engineering, ICEBE 2018


Conference15th International Conference on e-Business Engineering, ICEBE 2018


  • Behavior-Driven Development
  • Microservice
  • Microservice Retrieval
  • Requirement Scenario
  • Word2vec


Dive into the research topics of 'Scenario-Based Microservice Retrieval Using Word2Vec'. Together they form a unique fingerprint.

Cite this