Adding an Event Sink Endpoint

Automate inbound event sink endpoint creation and integration for microservices.

172|5|Updated Sep 9, 2022
One-click install
npx skills add https://github.com/microbus-io/fabric --skill adding-an-event-sink-endpoint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Adding an Event Sink Endpoint
Source: https://github.com/microbus-io/fabric/tree/main/.claude/skills/microbus/add-sink
Command: npx skills add https://github.com/microbus-io/fabric --skill adding-an-event-sink-endpoint

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation and integration of inbound event sink endpoints for microservices.

Core Features & Use Cases

  • Define inbound event sinks in service.yaml for the target microservice.
  • Generate boilerplate code and test scaffolding via code-gen tools.
  • Implement and validate inbound sinks, document changes, and version the microservice.

Quick Start

Copy the required signature from the outbound event and update the target microservice's service.yaml. Run go generate to scaffold boilerplate, implement the sink logic, then run tests and document changes.

Frequently Asked Questions about Adding an Event Sink Endpoint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add an inbound event sink to a microservice?

To add an inbound event sink, copy the outbound event signature into the target microservice's service.yaml, run go generate to scaffold boilerplate, implement the sink logic, and run tests to validate the integration.

What is an inbound event sink in event-driven architectures?

An inbound event sink is an endpoint in a microservice designed to receive events from other services. It automates boilerplate generation and configuration in service.yaml to enable seamless event-driven communication.

Do I need to match the outbound event signature when configuring service.yaml?

Yes, you must copy the required signature from the outbound event and paste it into the inbound sink definition in service.yaml. This enforces contract compatibility before running go generate for code scaffolding.

Can I use go generate to scaffold boilerplate code for event sinks?

Yes, go generate is used to automate the creation of boilerplate code and test scaffolding for inbound event sinks. You define the sink in service.yaml first, then execute go generate to produce the required code.

How do I test inbound event sinks across local environments?

You can test inbound event sinks across local environments by running the generated test scaffolding after implementing the sink logic. The skill streamlines end-to-end testing to validate the event-driven integration.