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

poliastro is a huge package and its size is exceeding zeit now limits #1

Open
emptymalei opened this issue Aug 26, 2019 · 4 comments
Open

Comments

@emptymalei
Copy link
Member

emptymalei commented Aug 26, 2019

Thus limit of aws.

It definitely needs a work around.


It may not work with serverless. So I have to make this a local python module. Or I could deploy it on heroku.

@emptymalei emptymalei changed the title poliastro is a huge package and is exceeding zeit now limits poliastro is a huge package and it is exceeding zeit now limits Aug 27, 2019
@emptymalei emptymalei changed the title poliastro is a huge package and it is exceeding zeit now limits poliastro is a huge package and its size is exceeding zeit now limits Aug 27, 2019
@emptymalei
Copy link
Member Author

emptymalei commented Aug 28, 2019

After some investigation, I gave up on this.

There are two choices.

  1. Use a light package and save auxiliary data in db.
  2. Deploy it as a full app instead of serverless.

For this purpose, neither of the two is worth the effort.

This project will go on in another direction:

Create the real-time potential map in our solar system and design the game locally. I will design the local module API as independent as possible so we could plug or unplug it at any time.

@OpenSourceZombie
Copy link
Member

I can help you with deploying it as a normal app

@emptymalei
Copy link
Member Author

@OpenSourceZombie Like a full-fledged flask app on Heroku?

Here are some background.

I am creating this because I need this for another project called orbits in solar systems.
This orbits in solar systems project requires the positions of the planets. I could directly create a python module to get positions in this project but I might need astro positions API for the front end. So I am thinking that I should just directly create the API for the positions first.

Yeah, while I am writing, I convinced myself that I should deploy it as a full app. In the end, the orbit calculation part will also gonna be huge.

Correct me if I am wrong, I think I need to:

  • rewrite it as a flask app
  • prepare heroku configs
  • deploy on heroku

@emptymalei emptymalei reopened this Sep 6, 2019
@emptymalei
Copy link
Member Author

@OpenSourceZombie I found the solution. I built a minified lambda layer for the libs I am using. It fits into aws lambda functions.
I just need to rewrite the code to serverless.

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

2 participants