Skip to main navigation Skip to search Skip to main content

Automated Service Contract Generation for Enhanced System Transparency in Message-Oriented Service Architectures

  • Maximilian Burger

    Student thesis: Master's Thesis

    Abstract

    The transition to microservice architectures trades a single, navigable codebase for a
    distributed network of independently deployed services. In message-oriented systems
    this is severe: the broker decouples producers from consumers and, in doing so, scatters
    the knowledge of which services communicate with one another across many separate
    codebases. The result is a loss of system transparency, the ability to understand a sys
    tem’s structure, dependencies and communication flows without executing it.
    This thesis investigates how broker-agnostic service contracts can be generated automat
    ically, restoring system transparency without runtime analysis. It proposes a framework
    that recovers a service’s messaging behavior statically, at build time, from the artifacts
    the build already produces. The framework makes three contributions. (1) A broker
    agnostic contract model that describes a service’s communication in terms of four logical
    messaging patterns. (2) An extraction framework, structured as a plugin architecture
    around a minimal core, that realizes two complementary strategies: an annotation-based
    one that reads explicit metadata to produce complete, schema-bearing contracts, and a
    bytecode-based one that reconstructs the channel topology of unannotated services from
    compiled class files without code changes. (3) A visualization component that aggre
    gates the per-service contracts into a system-level dependency map and a compatibility
    view, surfacing schema mismatches before they cause runtime failures.
    The framework was realized in a working system named Rogger, with a Quarkus refer
    ence implementation and a second implementation on the .NET platform as a porta
    bility study. An evaluation across RabbitMQ, Apache Kafka and ZeroMQ found the
    annotation-based contract to be structurally invariant across all three brokers and
    both platforms, while the non-intrusive bytecode strategy recovered nearly the com
    plete channel topology with correct pattern classification. These results demonstrate
    that the transparency gap between synchronous and asynchronous architectures is not
    a fundamental property of messaging but a tooling gap that can be closed.
    Date of Award2026
    Original languageEnglish (American)
    Awarding Institution
    • FH OÖ
    SupervisorJohann Heinzelreiter (Supervisor)

    Studyprogram

    • Software Engineering

    Cite this

    '