Google App Engine standard now supports Java 8

251 views
Skip to first unread message

Thanasis Delenikas

unread,
Jun 28, 2017, 12:49:08 PM6/28/17
to Google App Engine

Attila-Mihaly Balazs

unread,
Jun 29, 2017, 8:43:35 AM6/29/17
to Google App Engine
+1! Party! :-)

Now could we please get connections from GAE standard to the Postgres instances? :-)

Ludovic Champenois

unread,
Jun 30, 2017, 12:47:30 PM6/30/17
to google-a...@googlegroups.com, Attila-Mihaly Balazs



On 6/29/17 5:43 AM, Attila-Mihaly Balazs wrote:
+1! Party! :-)

Now could we please get connections from GAE standard to the Postgres instances? :-)
Sure, can you try https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java8/postgres and see if it works for you?

Ludo
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/1f337b5f-195c-445d-b5d8-1b831f934117%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attila-Mihaly Balazs

unread,
Jul 2, 2017, 5:57:26 AM7/2/17
to Google App Engine, dify...@gmail.com
Thank you for the reply.

I'm not all that familiar with Java on GAE (I've been using Python mostly), so I can't tell if that project is for GAE Standard or Flex. However note the following observations:

- The documentation [1] says: "Note: Connection from an App Engine standard environment application to a PostgreSQL instance is not supported."
- Just theorizing (haven't tried it actually) with Java it could work since the JDBC driver is pure-java (AFAIK) and I could enable socket support on GAE standard (the project has to have billing enabled) I could connect to the Postgres CloudSQL instance like any other application over the internet
- The same would possibly work for go-lang (I don't know how the Postgres driver for Go works)
- With python the Postgres library has binary parts and can't be used on App Engine standard unless explicit support is added by Google (like there is for MySQL)

Attila

[1] https://cloud.google.com/sql/docs/postgres/connect-app-engine

Jeff Schnitzer

unread,
Jul 3, 2017, 12:38:36 PM7/3/17
to Google App Engine
I’m using Cloud Postgres from Java8 using the vanilla JDBC driver and DBCP for pooling. AFAICT it works fine.

Jeff

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.

Kenworth (Google Cloud Platform)

unread,
Jul 4, 2017, 10:41:48 PM7/4/17
to google-a...@googlegroups.com

I successfully managed to connect a GAE standard application (Java 8) to Cloud SQL for PostgreSQL instance using the sample project that Ludovic provided [1]. Google App Engine using PostgreSQL is currently not supported on Go, but you can use Python or Java as an alternative. Article [2] describes how to connect Cloud SQL for PostgreSQL instance from an App Engine application using Python or Java. Please note that Connecting from App Engine to Cloud SQL for PostgreSQL is still a Beta release. We’ll update the doc[3] once the connections to PostgreSQL are supported for all GAE standard runtimes.


[1] https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java8/postgres  

[2] https://cloud.google.com/appengine/docs/flexible/python/using-cloud-sql-postgres

[3] https://cloud.google.com/sql/docs/postgres/connect-app-engine

Attila-Mihaly Balazs

unread,
Jul 12, 2017, 9:38:09 AM7/12/17
to Google App Engine
Again, I think you are mixing GAE standard and flexible here. Article [2] you posted is for GAE Flexible, not standard.
Reply all
Reply to author
Forward
0 new messages