Skip to content

Add ASB-triggered Functions for outbound delivery and subscription validation #1073

Description

@martivj

Description

Adds the ASB-triggered replacements for EventsOutbound and SubscriptionValidation.

Scope

  1. Implement EventsAsbOutbound: same behavior as the existing EventsOutbound function, triggered from the ASB outbound queue instead of the Storage Queue.
  2. Implement an ASB-triggered subscription-validation function — the linked PoC, feature/Implement-Azure-Service-Bus-POCSubscriptionValidation.cs, is already this (same behavior as today's function, triggered from the ASB validation queue instead of Storage).
  3. Using Restructure Wolverine handlers into Publisher/Handler/Policy pattern with per-queue feature flags #1072's per-queue publish flags, cut EnableOutboundPublisher and EnableValidationPublisher over to ASB, leaving the legacy Storage-Queue functions running unconditionally until their queues drain.

SendEventToSubscriberHandler / ValidateSubscriptionHandler are not touched by this issue — their listener flag stays off; that's #1076.

Additional Information

PoC branch for the ASB-triggered function pattern: https://github.com/Altinn/altinn-events/blob/feature/Implement-Azure-Service-Bus-POC/src/Events.Functions/SubscriptionValidation.cs

Acceptance Criteria

  • A new Azure Function handles the "events outbound" queue in ASB.
  • A new (or adapted) Azure Function handles the "subscription validation" queue in ASB.
  • Events stops writing outbound/validation events to Storage Queues once each publish flag is flipped, but continues to read from them until drained.
  • Messages already in the Storage account queues are still handled by the existing Storage-Queue-triggered functions.
  • Relevant automated tests (unit/integration) added or updated for the new functions and the flag-driven cutover.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status
    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions