Trying to run emulation for PubSub service. There is no clear manual explaining how it works.
Can I work offline with this emulation at all?
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/46489643-da24-494b-b0e1-c0ee6aca39a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, Alexander,There is a Cloud Pub/Sub emulator as part of gcloud tool currently in beta. The documentation is a little lacking right now, but we do have an interactive tutorial in the works. The basic steps to start it up are:1. Create a directory where you want to hold the data for the emulator.2. Start the emulator with the command:
gcloud beta emulators pubsub --data-dir=<full path to directory from step 1> start3. Run this command to get the environment variables for the endpoint to hit for the emulator:
gcloud beta emulators pubsub --data-dir=<full path to directory from step 1> env-init
4. Run your clients with these environment variables set. You can also use the localhost:<port> address to reach the emulator that you started.
I hope that helps!
Kamal
On Mon, Mar 21, 2016 at 9:32 AM 'Nick' via Google Cloud Pub/Sub Discussions <cloud-pubs...@googlegroups.com> wrote:
Hey Alexander,
PubSub, being a cloud service, is not really available as an "offline emulation". It would be up to you to develop the code which could emulate the service and interact with the development server code.
As for a clear manual explaining how PubSub works, there's no better reference than the official documentation.--
On Monday, March 14, 2016 at 7:12:36 AM UTC-4, Alexander Potapov wrote:Hello there!Trying to run emulation for PubSub service. There is no clear manual explaining how it works.
Can I work offline with this emulation at all?
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
4. Run your clients with these environment variables set. You can also use the localhost:<port> address to reach the emulator that you started.
I hope that helps!
Kamal
On Mon, Mar 21, 2016 at 9:32 AM 'Nick' via Google Cloud Pub/Sub Discussions <cloud-pubs...@googlegroups.com> wrote:
Hey Alexander,
PubSub, being a cloud service, is not really available as an "offline emulation". It would be up to you to develop the code which could emulate the service and interact with the development server code.
As for a clear manual explaining how PubSub works, there's no better reference than the official documentation.--
On Monday, March 14, 2016 at 7:12:36 AM UTC-4, Alexander Potapov wrote:Hello there!Trying to run emulation for PubSub service. There is no clear manual explaining how it works.
Can I work offline with this emulation at all?
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.