Search code examples
c#google-cloud-platformgoogle-cloud-pubsublite

Google Cloud PubSub Lite subscription in C#


I'm writing a software with C# language and I need to create a subscription to a Pub/Sub Lite in Google Cloud. I understood that I can't user the Google.Cloud.PubSub.V1 nuget package because it doesn't work with the Lite version. I found Google.Apis.PubsubLite.V1 nuget package but I haven't found an example of how I can create a subscription and read data from the Pub/Sub Lite. How I can do that?


Solution

  • Unfortunately C# language is not supported. You can create from console or terminal using the gcloud pubsub lite-subscriptions create command.

    If you want to use the API, these languages are supported:

    • Python
    • Java
    • GO

    You can see this official documentation.