addRedPanda
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addRedPanda( name: string, port?: number): RedPandaServerResource;}Signature
method
addRedPanda builderAdds a Redpanda container resource to the application. Redpanda is a Kafka API compatible streaming platform, so the resource can be referenced by any Kafka client integration.
addRedPanda( name: string, port?: number): RedPandaServerResourceParameters
namestringThe name of the resource. This name is used as the connection string name when referenced in a dependency.portnumberoptionalThe host port that the Kafka API is exposed on. If `null` a random port is assigned.Returns
RedPandaServerResource Applies to
This method applies to the following types: