What is the difference between using com.google.cloud.pubsub and com.google.api.services.pubsub

128 views
Skip to first unread message

Dominik Basner

unread,
Nov 17, 2016, 2:43:40 PM11/17/16
to Google App Engine
Hi,

I want to write some code for AppEngine and I'm not sure which of both I should use.

Thanks

Dominik

Besuchen Sie unseren Chrome Webshop unter shop.cloudwuerdig.com

www.sotec.eu | www.cloudwuerdig.com 
-- 
SOTEC Software Entwicklungs GmbH + Co Mikrocomputertechnik KG 
Calwer Straße 11, D-75395 Ostelsheim 
Sitz Ostelsheim, Amtsgericht Stuttgart HRA 330821/HRB 330664, Geschäftsführer: Florian Holz 
Cloudwürdig® ist eine eingetragene Marke der SOTEC Software Entwicklungs GmbH + Co Mikrocomputertechnik KG

Der Inhalt dieser e-Mail ist ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser e-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser e-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der e-Mail in Verbindung zu setzen.

The content of this e-mail is meant exclusively for the person to whom it is addressed. If you are not the person to whom this e-mail is addressed or his/her representative, please be informed, that any form of knowledge, publication, duplication or distribution of the content of this e-mail is inadmissible. We ask you, therefore, in such a case to please contact the sender of this e-mail.

Nick (Cloud Platform Support)

unread,
Nov 18, 2016, 3:04:10 PM11/18/16
to Google App Engine
Hey Dominik,

com.google.api.services.pubsub comes from Google Cloud Pub/Sub API Client Library for Java, while com.google.cloud.pubsub.PubSub comes from the Cloud Pub/Sub Client library. You can read about client libraries in general in the documentation. Basically, you can use either one when both an API client and a Cloud client library exist, but the documentation for the API client library will likely recommend using the Cloud client library, as is the case for Pub/Sub (see the first link in this reply).

I hope this is helpful in explaining, let me know if you have any other questions.

Cheers,

Nick
Cloud Platform Community Support
Reply all
Reply to author
Forward
0 new messages