Pub/Sub at GAE standard environment

Asked 1 years ago, Updated 1 years ago, 89 views


in GAE and Pub/Sub documents There are documents in a flexible environment to use Pub/Sub in GAE, but
Documentation missing in standard environment
https://cloud.google.com/pubsub/docs/tutorials

What should I do if I want to use Pub/Sub in a standard environment?

google-app-engine google-cloud

2022-09-30 17:56

2 Answers

Pub/Sub is also available in standard environments.However, the standard GAE environment does not include Cloud Pub/Sub Client Libraries as standard and should be included in the application code.For Python, the url below explains how to include it in the application code.
https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27
Also, once the API library is included in the code, the usage is no different from that of a flexible environment.

In the standard environment, you can use Task Queue, which is very similar to Pub/Sub.If there is no problem, I think you can use Task Queue.Task Queue has documentation.


2022-09-30 17:56

You can publish messages using the client library or the REST API.

If you want to subscribe to Pub/Sub messages on a GAE/SE, you can also receive messages by defining Push-type subscriptions and corresponding endpoints because you have never tried it, but I don't think the Pull type is available for GAE use.

See also

https://cloud.google.com/pubsub/docs/reference/libraries
https://cloud.google.com/pubsub/docs/push


2022-09-30 17:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.