Forge.AnvilBridge.Direct (Forge v0.1.1)
View SourceDirect Elixir adapter for AnvilBridge - in-process integration.
This adapter makes direct function calls to the Anvil application when Forge and Anvil are deployed together in the same Erlang VM (same cluster).
Benefits
- Zero network latency
- Type-safe function calls
- Shared transactions possible
- No serialization overhead
Usage
Configure in config/config.exs:
config :forge, :anvil_bridge_adapter, Forge.AnvilBridge.DirectImplementation Notes
When Anvil modules are available, this adapter will:
- Call Anvil.Queue.enqueue/2 for sample publishing
- Call Anvil.Annotations.list/1 for label retrieval
- Handle errors and normalize them to standard bridge errors
- Apply timeouts and retries for resilience
Currently returns :not_available errors until Anvil integration is complete.