🚧 Roadmap Item - Enhanced consumer tooling, Topic Browser, and REST API are under development.
Consuming data from the Unified Namespace involves subscribing to specific topics or patterns and processing the standardized message formats. UMH Core provides multiple consumption methods for different use cases.
Consumption Patterns
1. Bridge Sink Flows
Create outbound Bridges to send UNS data to external systems:
# Get namespace tree structure
curl -X GET "https://umh-core:8080/api/v1/uns/tree" \
-H "Authorization: Bearer $JWT_TOKEN"
# Get latest values for specific path
curl -X GET "https://umh-core:8080/api/v1/uns/values" \
-H "Authorization: Bearer $JWT_TOKEN" \
-d '{"path": "umh.v1.acme.plant1.line4.pump01._raw.*"}'
input:
uns:
topics: ["umh.v1.+.+.+.+._raw.+"] # All raw sensor data
pipeline:
processors:
- mapping: |
root.sensor_value = this.value
root.timestamp = this.timestamp_ms
Consuming Structured Data (Advanced) 🚧
input:
uns:
topics: ["umh.v1.+.+.+.+._temperature.+"] # Structured temperature data
pipeline:
processors:
- mapping: |
# Structured contracts have specific field names
root.temperature_celsius = this.temperature_in_c
root.timestamp = this.timestamp_ms
# Additional metadata from data model constraints
root.unit = "°C"
Migration from UMH Classic
Why UNS Input/Output?
UMH Core uses UNS input/output instead of direct Kafka access because:
Abstraction: Hides Kafka/Redpanda complexity from users
Embedded Integration: Works seamlessly with UMH Core's embedded Redpanda
Topic Management: Automatic topic creation and management
Metadata Handling: Proper UNS metadata propagation
Pattern Matching: Advanced regex support for topic patterns
This aligns with UMH Core's philosophy of embedding Redpanda as an internal implementation detail rather than exposing it directly to users.
Topic Browser 🚧
The upcoming Topic Browser provides a visual interface to explore and consume UNS data: