Skip to content

Kraftvakt

Kraftvakt is a web-based application used to communicate planned and unplanned outages to Kalmar Energi’s fiber, electricity, and district heating customers.

The application provides operational staff with tooling to create outage events and distribute information to affected customers as well as subscribers who opt in to receive all notifications.

Kraftvakt is hosted as an Azure Static Web App and backed by platform APIs running on-prem.

  • Allows creation of planned and unplanned outages
  • Identifies affected customers based on ERP data
  • Distributes outage notifications via push, email, and SMS
  • Supports scheduled notifications for planned outages
  • Publishes outage information to the external website (map view)
  • Provides subscription support for customers who want all notifications
  • External website presentation layer
  • Third-party SMS and email infrastructure

Kraftvakt consists of:

  • Azure Static Web App frontend
  • Backend APIs hosted on on-prem Kubernetes
  • Notification services for push, email, and SMS
  • Integration with ERP (BFUS) for customer data
  • ScheduleAPI for delayed or planned notifications
  • External integrations for SMS and email delivery

The frontend communicates with backend services via the shared platform edge (Front Door + API Management).

flowchart LR

subgraph Users["Users"]
  OpsUser["Operations user"]
  Customers["Customers"]
end

subgraph Cloud["Cloud"]
  UI["Kraftvakt UI<br/>(Azure Static Web App)"]
  Edge["Front Door + API Management"]
  KC["Keycloak<br/>(Identity)"]
end

subgraph OnPrem["On-prem services"]
  OutageAPI["Outage API"]
  Sched["ScheduleAPI"]
  IntBiz["IntegrationBusinessAPI"]
  Notif["NotificationAPI"]
  ERP["ERP / BFUS"]
end

subgraph Providers["External channels / providers"]
  Tellus["TellusTalk<br/>(SMS)"]
  SendGrid["SendGrid<br/>(Email)"]
  Bright["Bright mobile app"]
  Web["kalmarenergi.se<br/>(outage map)"]
end

%% UI flow
OpsUser --> UI --> Edge --> OutageAPI

%% Auth
Edge <-.-> KC

%% Customer communication
OutageAPI --> Tellus --> Customers
OutageAPI --> SendGrid --> Customers
OutageAPI --> Notif --> Bright --> Customers

%% Scheduling
OutageAPI <--> Sched

%% External web publishing
OutageAPI <--> Web

%% Customer data
OutageAPI <--> IntBiz <--> ERP

Core backend service responsible for:

  • Creating and managing outage records
  • Resolving affected customers via BFUS database views
  • Triggering notification flows
  • Publishing outage data to the external website
  • Coordinating scheduled deliveries via ScheduleAPI

This service acts as the central orchestrator.

Internal service used for push notifications to subscribed users.

Used when outages are planned in advance, allowing notification delivery to be scheduled for future execution.

Azure-hosted web interface used by operational staff to:

  • Create and manage outages
  • Select affected areas
  • Configure notification timing
  • Monitor delivery status
SourcePurpose
BFUS / ERPCustomer and contract data (via database views)
Kraftvakt UIOutage definitions and operational input

Kraftvakt distributes information through:

  • Push notifications (via NotificationAPI)
  • Email (via SendGrid)
  • SMS (via TellusTalk)

Channel selection depends on customer preferences and outage configuration.

Kraftvakt follows standard platform patterns:

  • Frontend hosted in Azure Static Web Apps
  • External access via Azure Front Door and API Management
  • Backend services deployed on on-prem Kubernetes
  • Authentication and secrets handled by shared platform services
  • Service-owned databases hosted on-prem

Kraftvakt owns:

  • Outage records
  • Notification configuration
  • Subscription metadata

Customer master data remains owned by BFUS.

  • Frontend deployed via Azure Static Web Apps
  • Backend services deployed on on-prem Kubernetes
  • Container images published through Azure Container Registry
  • Centralized service logging
  • Platform-level monitoring
  • BFUS availability or schema changes
  • SMS delivery failures (TellusTalk)
  • Email delivery issues (SendGrid)
  • Push notification failures
  • ScheduleAPI execution problems
  • External website integration issues
  • Functional owner: Kommunikationsstöd
  • Customer targeting depends on BFUS data quality
  • Notification delivery relies on external providers
  • Planned outages require ScheduleAPI availability
  • External website map depends on successful outage publishing