Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql support on RDS #3

Closed
AmiZya opened this issue Feb 9, 2016 · 10 comments
Closed

Postgresql support on RDS #3

AmiZya opened this issue Feb 9, 2016 · 10 comments

Comments

@AmiZya
Copy link

AmiZya commented Feb 9, 2016

Hello,

Is there anyone working on postgresql support on RDS ? If not I can try to make it work and submit a pull request.

Thanks

Amine

@Miserlou
Copy link
Owner

Miserlou commented Feb 9, 2016

Hey Amine!

That sounds good. It should be totally possible to get PG working with Zappa, I just haven't tried it yet.

The only issue it that we'll need to either:

  • Find a pure-Python Postgres Django backend (ala MySQL-Connector)

or

  • Come up with some way of distributing the pre-compiled .so files for the x86_64 linux platform into the Zappa zip file so that it JustWorks.

Maybe do some research into the first approach, and if there's nothing there we can think about the second?

Would love to have this sorted out, thanks for volunteering.

@chrismccracken
Copy link

I started looking at this same issue, and found this that may help https://github.com/jkehler/awslambda-psycopg2 django-zappa looks great by the way, can't wait to give it a try!

@Miserlou
Copy link
Owner

Oh, excellent.

Has anybody actually tried any of these Python PSQL libraries yet?

@Miserlou
Copy link
Owner

So, I'm not sure if that's the right solution as it still uses a compiled .so file - I'd prefer to keep everything in pure Python to avoid having to deal with injecting precompiled binary objects as part of the Zappa deployment.

There are some pretty good looking pure python PG adapters:
https://github.com/mfenniak/pg8000
https://github.com/d33tah/bpgsql

BPGSQL looks like it has had some work done towards a Django adapter, but unfortunately is looks like the maintainer just quite the project yesterday, which is very unfortunate.

@d33tah
Copy link

d33tah commented Feb 11, 2016

I'm the maintainer of BPGSQL - the discussion is about the project security, feel invited to take a look at d33tah/bpgsql#7 for details.

@stringfellow
Copy link

👍 from me folks, very excited about the prospects of using django-zappa (to replace celery... is that sane?). Definitely needs Postgres support though :) Watching with interest.

@Miserlou
Copy link
Owner

The Celery idea is absolutely on the roadmap, I'm going to open up another ticket to discuss that.

@cancan101
Copy link

This post talks about dealing so's on Lambda: https://serverlesscode.com/post/deploy-scikitlearn-on-lamba/

@Miserlou
Copy link
Owner

Miserlou commented Mar 8, 2016

Django-Zappa now supports Postgres via Lambda-Packages as of version 0.12.0.

@Miserlou Miserlou closed this as completed Mar 8, 2016
@stringfellow
Copy link

Tremendously exciting! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants