DSL for publisher and subscriber definitions