Introducing Solace Event Feeds - Code-Free Event Streaming from AsyncAPI
Hey Solace Community!
I wanted to share an exciting feature that’s been making my event-driven development workflow incredibly smooth - Solace Event Feeds through the Solace Try-Me CLI (stm
). If you’ve ever found yourself needing realistic event streams for demo or testing but dreading the setup time, this is a game-changer.
What Are Event Feeds?
Event Feeds are a powerful feature of the Solace Try-Me CLI that automatically generates streaming event data directly from your AsyncAPI specifications. Think of it as having a smart event generator that understands your schema and produces realistic, continuous data streams - all without writing a single line of code.
Why This Matters
We’ve all been there: You have a beautiful AsyncAPI design in Event Portal, but you need to test your event-driven architecture with realistic data. Traditionally, this meant:
- Writing custom mock data generators
- Manually crafting test payloads
- Spending hours setting up test scenarios
- Dealing with schema mismatches
Event Feeds eliminate this friction entirely.
How It Works (The Magic
)
The workflow is surprisingly elegant:
- Design in Event Portal - Create your application with events and schemas
- Export AsyncAPI - Download your AsyncAPI specification
- Generate Feed - Run
stm feed generate
to create your feed - Configure Rules - Use
stm feed configure
to customize data generation - Stream Events - Execute
stm feed run
orstm feed run -ui
to start streaming realistic data - Share with Community - Contribute your feed with
stm feed contribute
Real-World Benefits
For Developers:
- Instant realistic test data that matches your schemas
- No coding required for event generation
- Built-in Faker.js based data-generation rules integration for diverse data types (personal, financial, location, etc.)
- UI-based monitoring and control
For Teams:
- Consistent test environments across development stages
- Easy sharing of event patterns and use cases
- Rapid prototyping of event-driven architectures
- Seamless integration with existing Solace infrastructure
For the Community:
- Reusable event feeds for common domains
- Shared best practices for event modeling
- Collaborative approach to event-driven development
Getting Started
If you haven’t already, install the Solace Try-Me CLI:
MacOS:
brew tap SolaceLabs/stm
brew install stm
Linux/WSL:
echo "deb [arch=amd64 trusted=yes] https://raw.githubusercontent.com/SolaceLabs/apt-stm/master stm main" | sudo tee /etc/apt/sources.list.d/solace-stm-test.list
sudo apt-get update
sudo apt-get install stm
Then explore the feed commands:
stm feed --help
stm feed preview # Validate your AsyncAPI document
stm feed generate # Create your feed
stm feed configure # Customize data generation
stm feed run # Run event feed
stm feed run -ui # Start streaming with UI
stm feed list # List event feeds
stm feed import # Import an event feed from archive file
stm feed export # Export an event feed to Event Portal
stm feed archive # Archive an event feed
stm feed contribute # Contribute to community event feeds
Community Feeds
What makes this even more powerful is the community aspect. Check out feeds.solace.dev to:
- Browse existing community feeds
- Find feeds for your specific domain or use case
- Contribute your own feeds for others to benefit from
- Learn from real-world AsyncAPI patterns
Key Features That Stand Out
- Schema Compliance: Generated data always matches your AsyncAPI schema
- Realistic Data: Faker.js integration ensures meaningful test data
- Customizable Rules: Fine-tune generation patterns for your specific needs
- Community Driven: Share and reuse feeds across projects and teams
- Zero Code Required: From AsyncAPI to streaming events without programming
Call to Action
I’d love to see more community feeds and hear about your experiences! Whether you’re:
- Building microservices architectures
- Working with IoT data streams
- Developing financial applications
- Creating logistics systems
- Or any other event-driven use case
Consider creating and sharing your event feeds. It’s a great way to contribute to the community while building your own testing infrastructure.
Resources
- Community Feeds Site: feeds.solace.dev
- Solace Try-Me CLI GitHub: github.com/SolaceLabs/solace-tryme-cli
- Event Feeds Documentation: EVENT_FEEDS.md
- Data Generation Rules: DATAGENERATION_RULES
Have you tried Event Feeds yet? What’s your experience been like? Any specific domains or use cases you’d like to see more community feeds for? Let’s discuss!