Skip to main content

Delivering Multi-agent MicroServices Using CArtAgO

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 12589))

Abstract

This paper describes an agent programming language agnostic implementation of the Multi-Agent MicroServices (MAMS) model - an approach to integrating agents within microservices-based architectures. In this model, agents, deployed within microservices, expose aspects of their state as virtual resources that are externally accessible using REpresentational State Transfer (REST). Virtual resources are implemented as CArtAgO artifacts, exposing their state to the agent as a set of observable properties. Coupled with a set of artifact operations, this enables the agent to monitor and manage its own resources. In the paper, we formally model our approach, defining passive and active resource management strategies, and illustrate its use within a worked example.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    https://microservices.io/patterns/apigateway.html.

  2. 2.

    https://github.com/mikekelly/hal_specification/wiki/APIs.

  3. 3.

    https://netty.io/.

  4. 4.

    https://github.com/FasterXML/jackson.

  5. 5.

    https://gitlab.com/mams-ucd.

  6. 6.

    https://swagger.io/specification/.

  7. 7.

    https://raml.org/.

  8. 8.

    http://www.consus.ie.

References

  1. Ancona, D., Drossopoulou, S., Mascardi, V.: Automatic generation of self-monitoring MASs from multiparty global session types in Jason. In: Baldoni, M., Dennis, L., Mascardi, V., Vasconcelos, W. (eds.) DALT 2012. LNCS (LNAI), vol. 7784, pp. 76–95. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-37890-4_5

    Chapter  Google Scholar 

  2. Aref, A.M., Tran, T.T.: A decentralized trustworthiness estimation model for open, multiagent systems (DTMAS). J. Trust Manag. 2(1), 3 (2015). https://doi.org/10.1186/s40493-015-0014-4

    Article  Google Scholar 

  3. Balalaie, A., Heydarnoori, A., Jamshidi, P.: Microservices architecture enables devops: migration to a cloud-native architecture. IEEE Softw. 33(3), 42–52 (2016)

    Article  Google Scholar 

  4. El Fallah-Seghrouchni, A., Ricci, A., Son, T.C. (eds.): EMAS 2017. LNCS (LNAI), vol. 10738. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-91899-0

    Book  MATH  Google Scholar 

  5. Ciortea, A., Mayer, S., Gandon, F., Boissier, O., Ricci, A., Zimmermann, A.: A decade in hindsight: the missing bridge between multi-agent systems and the world wide web. In: Proceedings of the 18th International Conference on Autonomous Agents and MultiAgent Systems, pp. 1659–1663. International Foundation for Autonomous Agents and Multiagent Systems (2019)

    Google Scholar 

  6. Collier, R.W., Russell, S., Lillis, D.: Reflecting on agent programming with AgentSpeak(L). In: Chen, Q., Torroni, P., Villata, S., Hsu, J., Omicini, A. (eds.) PRIMA 2015. LNCS (LNAI), vol. 9387, pp. 351–366. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-25524-8_22

    Chapter  Google Scholar 

  7. Decker, S., Melnik, S., Van Harmelen, F., Fensel, D., Klein, M., Broekstra, J., Erdmann, M., Horrocks, I.: The semantic web: the roles of XML and RDF. IEEE Internet Comput. 4(5), 63–73 (2000)

    Article  Google Scholar 

  8. Dhaon, A., Collier, R.W.: Multiple inheritance in agent speak (l)-style programming languages. In: Proceedings of the 4th International Workshop on Programming based on Actors Agents and Decentralized Control, pp. 109–120 (2014)

    Google Scholar 

  9. Dragoni, N., Lanese, I., Larsen, S.T., Mazzara, M., Mustafin, R., Safina, L.: Microservices: how to make your application scale. In: Petrenko, A.K., Voronkov, A. (eds.) PSI 2017. LNCS, vol. 10742, pp. 95–104. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-74313-4_8

    Chapter  Google Scholar 

  10. Fielding, R.T.: REST: Architectural Styles and the Design of Network-based Software Architectures. Doctoral dissertation (2000). http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm

  11. Framework, Z.: Hypertext application language website (2019). https://weierophinney.github.io/hal/hal/. Accessed 29 Oct 2019

  12. Griffiths, N., Chao, K.-M. (eds.): Agent-Based Service-Oriented Computing. AIKP. Springer, London (2010). https://doi.org/10.1007/978-1-84996-041-0

    Book  MATH  Google Scholar 

  13. Hahn, C., Fley, B., Florian, M., Spresny, D., Fischer, K.: Social reputation: A mechanism for flexible self-regulation of multiagent systems. J. Artif. Soc. Soc. Simul. 10(1), 1–8 (2007)

    Google Scholar 

  14. Hartke, K.: The constrained restful application language (coral) (2020). https://datatracker.ietf.org/doc/draft-ietf-core-coral/. Accessed 08 Apr 2020

  15. International Foundation for Autonomous Agents and Multiagent Systems: Engineering Scalable Distributed Environments and Organizations for MAS (2019)

    Google Scholar 

  16. Kelly, M.: Json hypertext applicaion language specification (2016). https://tools.ietf.org/html/draft-kelly-json-hal-08. Accessed 29 Oct 2019

  17. Kravari, K., Bassiliades, N.: Storm: a social agent-based trust model for the internet of things adopting microservice architecture. Simul. Model. Pract. Theory 94, 286–302 (2019)

    Article  Google Scholar 

  18. Krivic, P., Skocir, P., Kusek, M., Jezic, G.: Microservices as agents in IoT systems. In: Jezic, G., Kusek, M., Chen-Burger, Y.-H.J., Howlett, R.J., Jain, L.C. (eds.) KES-AMSTA 2017. SIST, vol. 74, pp. 22–31. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-59394-4_3

    Chapter  Google Scholar 

  19. Lillis, D.: Internalising Interaction Protocols as First-Class Programming Elements in Multi Agent Systems. Ph.D. thesis, University College Dublin (2012)

    Google Scholar 

  20. Martins, J.A., Mazayev, A., Correia, N.: Hypermedia APIs for the web of things. IEEE Access 5, 20058–20067 (2017)

    Article  Google Scholar 

  21. Mascardi, V., Weyns, D.: Engineering multi-agent systems Anno 2025. In: Weyns, D., Mascardi, V., Ricci, A. (eds.) EMAS 2018. LNCS (LNAI), vol. 11375, pp. 3–16. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-25693-7_1

    Chapter  Google Scholar 

  22. O’Brien, P.D., Nicol, R.C.: FIPA-towards a standard for software agents. BT Technol. J. 16(3), 51–59 (1998). https://doi.org/10.1023/A:1009621729979

    Article  Google Scholar 

  23. O’Connor, R.V., Elger, P., Clarke, P.M.: Continuous software engineering-a microservices architecture perspective. J. Softw. Evol. Process 29(11), e1866 (2017)

    Article  Google Scholar 

  24. O’Neill, E., Lillis, D., O’Hare, G.M., Collier, R.W.: Explicit modelling of resources for multi-agent microservices using the cartago framework. In: 2020Proceedings of the 18th International Joint Conference on Autonomous Agents and Multi-Agent Systems, Auckland, NZ. International Foundation for Autonomous Agents and MultiAgent Systems (IFAAMAS) (2020)

    Google Scholar 

  25. De la Prieta, F., Rodríguez-González, S., Chamoso, P., Corchado, J.M., Bajo, J.: Survey of agent-based cloud computing applications. Future Gener. Comput. Syst. 100, 223–236 (2019)

    Article  Google Scholar 

  26. Rao, A.S.: AgentSpeak(L): BDI agents speak out in a logical computable language. In: Van de Velde, W., Perram, J.W. (eds.) MAAMAW 1996. LNCS, vol. 1038, pp. 42–55. Springer, Heidelberg (1996). https://doi.org/10.1007/BFb0031845

    Chapter  Google Scholar 

  27. Ricci, A., Bordini, R.H., Hubner, J.F., Collier, R.: Agentspeak (er): An extension of agentspeak (l) improving encapsulation and reasoning about goals. In: The 17th International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2018). International Foundation for Autonomous Agents and MultiAgent Systems (IFAAMAS) (2018)

    Google Scholar 

  28. Ricci, A., Viroli, M., Omicini, A.: CArtAgO: framework for prototyping artifact-based environments in MAS. In: Weyns, D., Parunak, H.V.D., Michel, F. (eds.) E4MAS 2006. LNCS (LNAI), vol. 4389, pp. 67–86. Springer, Heidelberg (2007). https://doi.org/10.1007/978-3-540-71103-2_4

    Chapter  Google Scholar 

  29. Roy, C.: Restful API design: Microserices. https://medium.com/@cknextmove/restful-api-design-microservices-f983e3ea3563. Accessed 25 Oct 2019

  30. Savaglio, C., Ganzha, M., Paprzycki, M., Bădică, C., Ivanović, M., Fortino, G.: Agent-based internet of things: State-of-the-art and research challenges. Future Gener. Comput. Syst 102, 1038–1053 (2020)

    Article  Google Scholar 

  31. Sporny, M., Longley, D., Kellogg, G., Lanthaler, M., Lindström, N.: Json-ld 1.0. W3C Recomm. 16, 41 (2014)

    Google Scholar 

  32. Thönes, J.: Microservices. IEEE Softw. 32(1), 116–116 (2015)

    Article  Google Scholar 

  33. Villamizar, M., et al.: Evaluating the monolithic and the microservice architecture pattern to deploy web applications in the cloud. In: 2015 10th Computing Colombian Conference (10CCC), pp. 583–590. IEEE (2015)

    Google Scholar 

  34. Collier, R.W., O’Neill, E., Lillis, D., O’Hare, G.: Mams: Multi-agent microservices. In: Companion Proceedings of The 2019 World Wide Web Conference, pp. 655–662. ACM (2019)

    Google Scholar 

  35. Xu, C., Zhu, H., Bayley, I., Lightfoot, D., Green, M., Marshall, P.: Caople: a programming language for microservices SaaS. In: 2016 IEEE Symposium on Service-Oriented System Engineering (SOSE), pp. 34–43. IEEE (2016)

    Google Scholar 

Download references

Acknowledgements

This research is funded under the SFI Strategic Partnerships Programme (16/ SPP/3296) and is co-funded by Origin Enterprises Plc.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rem W. Collier .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

O’Neill, E., Lillis, D., O’Hare, G.M.P., Collier, R.W. (2020). Delivering Multi-agent MicroServices Using CArtAgO. In: Baroglio, C., Hubner, J.F., Winikoff, M. (eds) Engineering Multi-Agent Systems. EMAS 2020. Lecture Notes in Computer Science(), vol 12589. Springer, Cham. https://doi.org/10.1007/978-3-030-66534-0_1

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-66534-0_1

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-66533-3

  • Online ISBN: 978-3-030-66534-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics