journal article·2022-07-01Open access

Developing Microservice-Based Applications Using the Silvera Domain-Specific Language

Alen Suljkanović, Branko Milosavljević, Vladimir Inđić, Igor Dejanović

Applied Sciences· Volume 12· Issue 13

Abstract

Microservice Architecture (MSA) is a rising trend in software architecture design. Applications based on MSA are distributed applications whose components are microservices. MSA has already been adopted with great success by numerous companies, and a significant number of published papers discuss its advantages. However, the results of recent studies show that there are several important challenges in the adoption of microservices such as finding the right decomposition approach, heterogeneous technology stacks, lack of relevant skills, out-of-date documentation, etc. In this paper, we present Silvera, a Domain-Specific Language (DSL), and a compiler for accelerating the development of microservices. Silvera is a declarative language that allows users to model the architecture of microservice-based systems. It is designed so that it can be used both by inexperienced and experienced developers. The following characteristics distinguish Silvera from similar tools: (i) lightweight and editor-agnostic language, (ii) built with heterogeneity in mind, (iii) uses microservice-tailored metrics to evaluate the architecture of the designed system, and (iv) automatically generates the documentation. Silvera’s retargetable compiler transforms models into runnable code and produces the documentation for each microservice in the model. The compiler can produce code for any programming language or framework since code generators are registered as plugins. We present a case study that illustrates the use of Silvera and also discuss some current limitations and development directions. To evaluate Silvera, we conducted a survey based on A Framework for Qualitative Assessment of DSLs (FQAD), where we focused on the following DSL characteristics: functional suitability, usability, reliability, productivity, extendability, and expressiveness. Overall, the survey results show that Silvera satisfies these characteristics.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Software System Performance and Reliability · Advanced Software Engineering Methodologies · Service-Oriented Architecture and Web Services

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Typhoon HIL, 21000 Novi Sad, Serbia

Faculty of Technical Sciences, University of Novi Sad, 21000 Novi Sad, Serbia

References (72)

Show source-provided references
1. Fowler, M., and Lewis, J. (2017, April 30). Microservices. Available online: https://www.martinfowler.com/articles/microservices.html.
2. Di Francesco, P., Malavolta, I., and Lago, P. (2017). Research on architecting microservices: Trends, focus, and potential for industrial adoption. Software Architecture (ICSA), Proceedings of the 2017 IEEE International Conference on Software Architecture (ICSA), Gothenburg, Sweden, 3–7 April 2017, IEEE.10.1109/ICSA.2017.24 ↗
3. Fritzsch, J., Bogner, J., Wagner, S., and Zimmermann, A. (October, January 29). Microservices migration in industry: Intentions, strategies, and challenges. Proceedings of the 2019 IEEE International Conference on Software Maintenance and Evolution (ICSME), Cleveland, OH, USA.10.1109/ICSME.2019.00081 ↗
4. Architecting microservices: Practical opportunities and challenges
5. Bogner, J., Fritzsch, J., Wagner, S., and Zimmermann, A. (2019, January 25–26). Microservices in industry: Insights into technologies, characteristics, and software quality. Proceedings of the 2019 IEEE International Conference on Software Architecture Companion (ICSA-C), Hamburg, Germany.10.1109/ICSA-C.2019.00041 ↗
6. Drivers and barriers for microservice adoption-a survey among professionals in germany
7. Promises and challenges of microservices: An exploratory study10.1007/s10664-020-09910-y ↗
8. Does migrating a monolithic system to microservices decrease the technical debt?10.1016/j.jss.2020.110710 ↗
9. Kleehaus, M., and Matthes, F. (2019, January 28–31). Challenges in Documenting Microservice-Based IT Landscape: A Survey from an Enterprise Architecture Management Perspective. Proceedings of the 2019 IEEE 23rd International Enterprise Distributed Object Computing Conference (EDOC), Paris, France.10.1109/EDOC.2019.00012 ↗
10. Bushong, V., Abdelfattah, A.S., Maruf, A.A., Das, D., Lehman, A., Jaroszewski, E., Coffey, M., Cerny, T., Frajtak, K., and Tisnovsky, P. (2021). On Microservice Analysis and Architecture Evolution: A Systematic Mapping Study. Appl. Sci., 11.10.3390/app11177856 ↗
11. A systematic mapping study on microservices architecture in devops10.1016/j.jss.2020.110798 ↗
12. Voelter, M., Benz, S., Dietrich, C., Engelmann, B., Helander, M., Kats, L.C., Visser, E., and Wachsmuth, G. (2022, June 20). DSL Engineering: Designing, Implementing and Using Domain-Specific Languages; CreateSpace Independent Publishing Platform 2013. Available online: dslbook.org.
13. A framework for qualitative assessment of domain-specific languages10.1007/s10270-013-0387-8 ↗
14. ISO/IEC/IEEE (2011). ISO/IEC/IEEE Systems and Software Engineering—Architecture Description, IEEE. ISO/IEC/IEEE 42010:2011(E) (Revision of ISO/IEC 42010:2007 and IEEE Std 1471-2000).
15. Górski, T. (2021). The 1+5 Architectural Views Model in Designing Blockchain and IT System Integration Solutions. Symmetry, 13.10.3390/sym13112000 ↗
16. Richards, M. (2015). Microservices vs. Service-Oriented Architecture, O’Reilly Media.
17. Dragoni, N., Giallorenzo, S., Lafuente, A.L., Mazzara, M., Montesi, F., Mustafin, R., and Safina, L. (2016). Microservices: Yesterday, today, and tomorrow. arXiv.10.1007/978-3-319-67425-4_12 ↗
18. CHOReVOLUTION: Service choreography in practice10.1016/j.scico.2020.102498 ↗
19. Self-adapting cloud services orchestration for fulfilling intensive sensory data-driven IoT workflows10.1016/j.future.2020.02.066 ↗
20. Contextual understanding of microservice architecture: Current and future directions10.1145/3183628.3183631 ↗
21. Li, J., Zhong, Y., Zhu, S., and Hao, Y. (2022). Energy-aware service composition in multi-Cloud. J. King Saud-Univ.-Comput. Inf. Sci., in press.10.1016/j.jksuci.2022.04.014 ↗
22. Optimization of business process execution in services architecture: A systematic literature review10.1109/ACCESS.2021.3102668 ↗
23. From monolithic to microservices: An experience report from the banking domain10.1109/MS.2018.2141026 ↗
24. On micro-services architecture
25. Dragoni, N., Lanese, I., Larsen, S.T., Mazzara, M., Mustafin, R., and Safina, L. (2017). Microservices: How to make your application scale. arXiv.10.1007/978-3-319-74313-4_8 ↗
26. Gabbrielli, M., Giallorenzo, S., Guidi, C., Mauro, J., and Montesi, F. (2016). Self-reconfiguring microservices. Theory and Practice of Formal Methods, Springer.10.1007/978-3-319-30734-3_14 ↗
27. Richardson, C. (2017). Microservice Patterns, Manning Publications.
28. Deployment and communication patterns in microservice architectures: A systematic literature review10.1016/j.jss.2021.111014 ↗
29. Houmani, Z., Balouek-Thomert, D., Caron, E., and Parashar, M. (2020, January 1–14). Enhancing microservices architectures using data-driven service discovery and QoS guarantees. Proceedings of the 2020 20th IEEE/ACM International Symposium on Cluster, Cloud and Internet Computing (CCGRID), Melbourne, VIC, Australia.10.1109/CCGrid49817.2020.00-64 ↗
30. Newman, S. (2015). Building Microservices, O’Reilly Media.
31. Domain-specific languages: An annotated bibliography10.1145/352029.352035 ↗
32. Visser, E. (2007). WebDSL: A case study in domain-specific language engineering. International Summer School on Generative and Transformational Techniques in Software Engineering, Springer.10.1007/978-3-540-88643-3_7 ↗
33. Kosar, T., Lu, Z., Mernik, M., Horvat, M., and Črepinšek, M. (2021). A Case Study on the Design and Implementation of a Platform for Hand Rehabilitation. Appl. Sci., 11.10.3390/app11010389 ↗
34. Dejanović, I., Dejanović, M., Vidaković, J., and Nikolić, S. (2021). PyFlies: A Domain-Specific Language for Designing Experiments in Psychology. Appl. Sci., 11.10.3390/app11177823 ↗
35. Wile, D. (2003, January 6–9). Lessons learned from real DSL experiments. Proceedings of the 36th Annual Hawaii International Conference on System Sciences, Big Island, HI, USA.10.1109/HICSS.2003.1174893 ↗
36. Gray, J., and Karsai, G. (2003, January 6–9). An examination of DSLs for concisely representing model traversals and transformations. Proceedings of the 36th Annual Hawaii International Conference on System Sciences, Big Island, HI, USA.10.1109/HICSS.2003.1174892 ↗
37. Effectiveness and efficiency of a domain-specific language for high-performance marine ecosystem simulation: A controlled experiment10.1007/s10664-016-9483-z ↗
38. Program comprehension of domain-specific and general-purpose languages: Replication of a family of experiments using integrated development environments10.1007/s10664-017-9593-2 ↗
39. Wizenty, P., Sorgalla, J., Rademacher, F., and Sachweh, S. (2017, January 11–15). MAGMA: Build management-based generation of microservice infrastructures. Proceedings of the 11th European Conference on Software Architecture: Companion Proceedings, Canterbury, UK.10.1145/3129790.3129821 ↗
40. Sorgalla, J. (2017, January 25–26). Ajil: A graphical modeling language for the development of microservice architectures. Proceedings of the Microservices 2017 Conference, Extended Abstracts, Odense, Denmark.
41. Perera, K., and Perera, I. (2018, January 1–3). A Rule-based System for Automated Generation of Serverless-Microservices Architecture. Proceedings of the 2018 IEEE International Systems Engineering Symposium (ISSE), Rome, Italy.10.1109/SysEng.2018.8544423 ↗
42. Terzić, B., Dimitrieski, V., Kordić, S., Milosavljević, G., and Luković, I. (2018). Development and evaluation of MicroBuilder: A Model-Driven tool for the specification of REST Microservice Software Architectures. Enterp. Inf. Syst., 1–24.10.1080/17517575.2018.1460766 ↗
43. Applying Model-Driven Engineering to Stimulate the Adoption of DevOps Processes in Small and Medium-Sized Development Organizations10.1007/s42979-021-00825-z ↗
44. Montesi, F., Guidi, C., and Zavattaro, G. (2014). Service-Oriented Programming with Jolie. Web Services Foundations, Springer.10.1007/978-1-4614-7518-7_4 ↗
45. Rademacher, F., Sachweh, S., and Zündorf, A. (2019, January 25–29). Aspect-oriented modeling of technology heterogeneity in microservice architecture. Proceedings of the 2019 IEEE International Conference on Software Architecture (ICSA), Hamburg, Germany.10.1109/ICSA.2019.00011 ↗
46. Bogner, J., Wagner, S., and Zimmermann, A. (2017, January 25–27). Automatically measuring the maintainability of service-and microservice-based systems: A literature review. Proceedings of the 27th International Workshop on Software Measurement and 12th International Conference on Software Process and Product Measurement, Gothenburg, Sweden.10.1145/3143434.3143443 ↗
47. Notable design patterns for domain-specific languages10.1016/S0164-1212(00)00089-3 ↗
48. When and how to develop domain-specific languages10.1145/1118890.1118892 ↗
49. Jalali, S., and Wohlin, C. (2012, January 20–21). Systematic literature studies: Database searches vs. backward snowballing. Proceedings of the 2012 ACM-IEEE International Symposium on Empirical Software Engineering and Measurement, Lund, Sweden.10.1145/2372251.2372257 ↗
50. Fowler, M. (2010). Domain-Specific Languages, Addison-Wesley Professional.
51. A preliminary study on various implementation approaches of domain-specific language10.1016/j.infsof.2007.04.002 ↗
52. TextX: A Python tool for Domain-Specific Languages implementation10.1016/j.knosys.2016.10.023 ↗
53. Hirzalla, M., Cleland-Huang, J., and Arsanjani, A. A metrics suite for evaluating flexibility and complexity in service oriented architectures. Proceedings of the International Conference on Service-Oriented Computing.
54. Rud, D., Schmietendorf, A., and Dumke, R. Product metrics for service-oriented infrastructures. Proceedings of the 16th International Workshop on Software Measurement and DASMA Metrik Kongress.
55. Systematic mapping study of template-based code generation
56. Vlissides, J. (1998). Pattern Hatching: Design Patterns Applied, Addison-Wesley Longman Ltd.
57. Hofmann, M., Schnabel, E., and Stanley, K. (2017). Microservices Best Practices for Java, IBM Redbooks.
58. Kelly, S., and Tolvanen, J.P. (2008). Domain-Specific Modeling: Enabling Full Code Generation, Wiley–IEEE Computer Society Pr.10.1002/9780470249260 ↗
59. Kieburtz, R.B., McKinney, L., Bell, J.M., Hook, J., Kotov, A., Lewis, J., Oliva, D.P., Sheard, T., Smith, I., and Walton, L. (1996, January 25–30). A software engineering experiment in software component generation. Proceedings of the IEEE 18th International Conference on Software Engineering, Berlin, Germany.
60. Wohlin, C., Runeson, P., Höst, M., Ohlsson, M.C., Regnell, B., and Wesslén, A. (2000). Experimentation in Software Engineering: An Introduction, Kluwer Academic Publishers.10.1007/978-1-4615-4625-2 ↗
61. Jedlitschka, A., Ciolkowski, M., and Pfahl, D. (2008). Reporting Experiments in Software Engineering. Guide to Advanced Empirical Software Engineering, Springer.10.1007/978-1-84800-044-5_8 ↗
62. The TAME project: Towards improvement-oriented software environments10.1109/32.6156 ↗
63. (2013). R Core Team R: A Language and Environment for Statistical Computing, R Core Team.
64. Woolson, R. (2007). Wilcoxon signed-rank test. Wiley Encyclopedia of Clinical Trials, Wiley.10.1002/9780471462422.eoct979 ↗
65. SEGA: Secured Edge Gateway Microservices Architecture for IIoT-based Machine Monitoring10.1109/TII.2021.3102158 ↗
66. Yarygina, T., and Bagge, A.H. (2018, January 6–29). Overcoming security challenges in microservice architectures. Proceedings of the 2018 IEEE Symposium on Service-Oriented System Engineering (SOSE), Bamberg, Germany.10.1109/SOSE.2018.00011 ↗
67. Belafia, R., Jeanjean, P., Barais, O., Le Guernic, G., and Combemale, B. (2021, January 10–15). From Monolithic to Microservice Architecture: The Case of Extensible and Domain-Specific IDEs. Proceedings of the 2021 ACM/IEEE International Conference on Model Driven Engineering Languages and Systems Companion (MODELS-C), Fukuoka, Japan.10.1109/MODELS-C53483.2021.00070 ↗
68. El-Ghareeb, H.A. (2020). Neutrosophic-based domain-specific languages and rules engine to ensure data sovereignty and consensus achievement in microservices architecture. Optimization Theory Based on Neutrosophic and Plithogenic Sets, Elsevier.10.1016/B978-0-12-819670-0.00002-0 ↗
69. Empirical Study of Object-Oriented Metrics10.5381/jot.2006.5.8.a5 ↗
70. Cohesion-driven decomposition of service interfaces without access to source code10.1109/TSC.2014.2310195 ↗
71. Engel, T., Langermeier, M., Bauer, B., and Hofmann, A. (2018). Evaluation of microservice architectures: A metric and tool-based approach. International Conference on Advanced Information Systems Engineering, Springer.10.1007/978-3-319-92901-9_8 ↗
72. Haupt, F., Leymann, F., Scherer, A., and Vukojevic-Haupt, K. (2017, January 3–7). A framework for the structural analysis of REST APIs. Proceedings of the 2017 IEEE International Conference on Software Architecture (ICSA), Gothenburg, Sweden.10.1109/ICSA.2017.40 ↗