Ecosyste.ms: Repos

An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: cloud.google.com/go/pubsub

Package pubsub provides an easy way to publish and receive Google Cloud Pub/Sub messages, hiding the details of the underlying server RPCs. Google Cloud Pub/Sub is a many-to-many, asynchronous messaging system that decouples senders and receivers. More information about Google Cloud Pub/Sub is available at https://cloud.google.com/pubsub/docs See https://godoc.org/cloud.google.com/go for authentication, timeouts, connection pooling and similar aspects of this package. Google Cloud Pub/Sub messages are published to topics. Topics may be created using the pubsub package like so: Messages may then be published to a topic: Publish queues the message for publishing and returns immediately. When enough messages have accumulated, or enough time has elapsed, the batch of messages is sent to the Pub/Sub service. Publish returns a PublishResult, which behaves like a future: its Get method blocks until the message has been sent to the service. The first time you call Publish on a topic, goroutines are started in the background. To clean up these goroutines, call Stop: To receive messages published to a topic, clients create subscriptions to the topic. There may be more than one subscription per topic; each message that is published to the topic will be delivered to all of its subscriptions. Subscriptions may be created like so: Messages are then consumed from a subscription via callback. The callback is invoked concurrently by multiple goroutines, maximizing throughput. To terminate a call to Receive, cancel its context. Once client code has processed the message, it must call Message.Ack or Message.Nack; otherwise the message will eventually be redelivered. Ack/Nack MUST be called within the Receive handler function, and not from a goroutine. Otherwise, flow control (e.g. ReceiveSettings.MaxOutstandingMessages) will not be respected, and messages can get orphaned when cancelling Receive. If the client cannot or doesn't want to process the message, it can call Message.Nack to speed redelivery. For more information and configuration options, see "Ack Deadlines" below. Note: It is possible for Messages to be redelivered even if Message.Ack has been called. Client code must be robust to multiple deliveries of messages. Note: This uses pubsub's streaming pull feature. This feature has properties that may be surprising. Please take a look at https://cloud.google.com/pubsub/docs/pull#streamingpull for more details on how streaming pull behaves compared to the synchronous pull method. The number of StreamingPull connections can be configured by setting sub.ReceiveSettings.NumGoroutines. The default value of 10 means the client library will maintain 10 StreamingPull connections. This is more than sufficient for most use cases, as StreamingPull connections can handle up to 10 MB/s https://cloud.google.com/pubsub/quotas#resource_limits. In some cases, using too many streams can lead to client library behaving poorly as the application becomes I/O bound. By default, the number of connections in the gRPC conn pool is min(4,GOMAXPROCS). Each connection supports up to 100 streams. Thus, if you have 4 or more CPU cores, the default setting allows a maximum of 400 streams which is already excessive for most use cases. If you want to change the limits on the number of streams, you can change the number of connections in the gRPC connection pool as shown below: The default pubsub deadlines are suitable for most use cases, but may be overridden. This section describes the tradeoffs that should be considered when overriding the defaults. Behind the scenes, each message returned by the Pub/Sub server has an associated lease, known as an "ack deadline". Unless a message is acknowledged within the ack deadline, or the client requests that the ack deadline be extended, the message will become eligible for redelivery. As a convenience, the pubsub client will automatically extend deadlines until either: Ack deadlines are extended periodically by the client. The initial ack deadline given to messages is based on the subscription's AckDeadline property, which defaults to 10s. The period between extensions, as well as the length of the extension, automatically adjusts based on the time it takes the subscriber application to ack messages (based on the 99th percentile of ack latency). By default, this extension period is capped at 10m, but this limit can be configured by the "MaxExtensionPeriod" setting. This has the effect that subscribers that process messages quickly have their message ack deadlines extended for a short amount, whereas subscribers that process message slowly have their message ack deadlines extended for a large amount. The net effect is fewer RPCs sent from the client library. For example, consider a subscriber that takes 3 minutes to process each message. Since the library has already recorded several 3-minute "ack latencies"s in a percentile distribution, future message extensions are sent with a value of 3 minutes, every 3 minutes. Suppose the application crashes 5 seconds after the library sends such an extension: the Pub/Sub server would wait the remaining 2m55s before re-sending the messages out to other subscribers. Please note that by default, the client library does not use the subscription's AckDeadline for the MaxExtension value. To enforce the subscription's AckDeadline, set MaxExtension to the subscription's AckDeadline: For use cases where message processing exceeds 30 minutes, we recommend using the base client in a pull model, since long-lived streams are periodically killed by firewalls. See the example at https://godoc.org/cloud.google.com/go/pubsub/apiv1#example-SubscriberClient-Pull-LengthyClientProcessing To use an emulator with this library, you can set the PUBSUB_EMULATOR_HOST environment variable to the address at which your emulator is running. This will send requests to that address instead of to Cloud Pub/Sub. You can then create and use a client as usual:
60 versions
Latest release: 3 months ago
2,286 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/cloud.google.com/go/pubsub

View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/googleapis%2Fgoogle-cloud-go

Dependent Repos 100,525

admariner/jitsu Fork of jitsucom/jitsu
Jitsu is an open-source data integration platform
  • v1.0.1 configurator/backend/go.sum
  • v1.1.0 configurator/backend/go.sum
  • v1.2.0 configurator/backend/go.sum
  • v1.3.1 configurator/backend/go.sum
  • v1.0.1 server/go.sum
  • v1.1.0 server/go.sum
  • v1.2.0 server/go.sum
  • v1.3.1 server/go.sum

Size: 29.4 MB - Last synced: about 2 months ago - Pushed: 10 months ago

brotherlogic/logging
Logging for system
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum
  • v1.26.0 go.sum
  • v1.27.1 go.sum

Size: 607 KB - Last synced: 7 days ago - Pushed: 8 days ago

kmodules/resource-metadata
API for defining metadata about Kubernetes resources
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum

Size: 75.6 MB - Last synced: about 10 hours ago - Pushed: about 23 hours ago

vearutop/cache-story
Demo repository for a blog post.
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum

Size: 4.59 MB - Last synced: 2 months ago - Pushed: 2 months ago

ossf/scorecard-action
Official GitHub Action for OpenSSF Scorecard.
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum
  • v1.5.0 go.sum
  • v1.17.1 go.sum
  • v1.19.0 go.sum
  • v1.21.1 go.sum

Size: 6.39 MB - Last synced: about 10 hours ago - Pushed: 6 days ago

zeromike/syft Fork of anchore/syft
CLI tool and library for generating a Software Bill of Materials from container images and filesystems
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum
  • v1.5.0 go.sum
  • v1.17.1 go.sum

Size: 10.4 MB - Last synced: 12 months ago - Pushed: almost 2 years ago

Sijoma/camunda-backup-clients
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum

Size: 66.4 KB - Last synced: 10 months ago - Pushed: about 1 year ago

aberja/argo Fork of argoproj/argo-workflows
Argo Workflows: Get stuff done with Kubernetes.
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum

Size: 67.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

krasish/test-infra Fork of kyma-project/test-infra
Test infrastructure for the Kyma project.
  • v1.9.0 development/gcp/cloud-functions/checkoomevent/go.mod
  • v1.0.1 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.1.0 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.2.0 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.3.1 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.9.0 development/gcp/cloud-functions/checkoomevent/go.sum
  • v1.17.1 development/gcp/cloud-functions/getfailureinstancedetails/go.mod
  • v1.0.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.1.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.2.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.3.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.4.0 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.10.3 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.17.1 development/gcp/cloud-functions/getfailureinstancedetails/go.sum
  • v1.10.3 development/gcp/cloud-functions/getslackuserforgithubuser/go.mod
  • v1.0.1 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.1.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.2.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.3.1 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.4.0 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.10.3 development/kyma-ci-force-bot/ciforcebot/go.sum
  • v1.10.1 development/kyma-pubsub-connector/pubSubGateway/go.mod
  • v1.0.1 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.1.0 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.2.0 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.3.1 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.10.1 development/kyma-pubsub-connector/pubSubGateway/go.sum
  • v1.0.1 development/prow-installer/go.sum
  • v1.0.1 development/test-log-collector/go.sum
  • v1.1.0 development/test-log-collector/go.sum
  • v1.2.0 development/test-log-collector/go.sum
  • v1.19.0 go.mod
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum
  • v1.4.0 go.sum
  • v1.10.3 go.sum
  • v1.19.0 go.sum

Size: 15.3 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

philip-teleport/teleport Fork of gravitational/teleport
Certificate authority and access plane for SSH, Kubernetes, web apps, databases and desktops
  • v1.0.1 api/go.sum
  • v1.1.0 api/go.sum
  • v1.2.0 api/go.sum
  • v1.3.1 api/go.sum
  • v1.0.1 assets/backport/go.sum
  • v1.1.0 assets/backport/go.sum
  • v1.2.0 assets/backport/go.sum
  • v1.3.1 assets/backport/go.sum

Size: 521 MB - Last synced: 18 days ago - Pushed: 21 days ago

luthersystems/sandbox
End-to-end "hello world" application on the Luther Platform.
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum

Size: 473 KB - Last synced: 16 days ago - Pushed: 16 days ago

spolti/kie-cloud-operator Fork of kiegroup/kie-cloud-operator
OCP Operator for KIE
  • v1.0.1 go.sum
  • v1.1.0 go.sum
  • v1.2.0 go.sum
  • v1.3.1 go.sum

Size: 100 MB - Last synced: 8 months ago - Pushed: 8 months ago

dhis2-sre/im-inspector
  • v1.0.1 go.sum

Size: 281 KB - Last synced: 15 days ago - Pushed: 16 days ago