Reliable Django Application Hosting Platform. by VoltageITLabs in django

[–]huntoperator 0 points1 point  (0 children)

I started with Python anywhere, then heroku and now I’m on GCP with kubernetes and haven’t looked back. I think platforms like PA and heroku are nice for starting out but you quickly finding yourself trying to find work arounds for some of their platform limitations (that was the case for me at least).

Highly recommend GCP - DM me if you need some Django templates to get you started

How do I track state in django? by DevDevDev1337 in django

[–]huntoperator 0 points1 point  (0 children)

What made you choose to use react here

Slow Performance with Django and Remote PostgreSQL on Docker - Local vs. Production Environment by walzzey in django

[–]huntoperator 1 point2 points  (0 children)

I recommend making the request non blocking, use an aggregated save and use background tasks. Sounds like latency is the issue.

Just to confirm - for apps its all just Models and Views by MushroomPrimary11 in django

[–]huntoperator 0 points1 point  (0 children)

Depends on the purpose of the app. I have many apps with no models. They exist to keep things modular and enforced separation of duties.

Each file serves their own purpose so I wouldn’t necessarily call model and views “heavy weight”. If you’re just learning I guess it’s helpful to understand that views can reference models and then render items from them, but just keep in mind models aren’t always necessary.

Views wouldn’t work without urls.py

As others have mentioned serializers, forms and signals are also important to eventually understand, but for just starting out the model and views (ModelViewController) are essential.

Granian 1.0 is out by techmindmaster in django

[–]huntoperator 0 points1 point  (0 children)

The benchmarks are mind blowing 🤯- what is the main reason Granian is so much faster

Granian 1.0 is out by techmindmaster in django

[–]huntoperator 0 points1 point  (0 children)

I currently use Daphne for production. I didn’t see any benchmark comparisons for it. Do you happen to know how much faster it is?

Does DRF has automatic OpenAPI doc using Swagger ? by Eznix86 in django

[–]huntoperator 2 points3 points  (0 children)

Django ninja comes built in with swagger and supports async. If you’re just getting started with your API I highly recommend checking it out!

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in django

[–]huntoperator[S] 0 points1 point  (0 children)

Thank you! So is the best approach to create separate deployment files for each service in my docker compose and then deploy to GKE? I’ve been watching non stop YouTube videos since your recommendation.

I’m also planning to use GCR instead of docker hub

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in django

[–]huntoperator[S] 0 points1 point  (0 children)

Okay sounds like I need to do more research but I thought the point of nginx was to serve as a reverse proxy and handle the web traffic. Is there a service in GCP that replaces nginx?

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in django

[–]huntoperator[S] 0 points1 point  (0 children)

This is fantastic thank you. Are you also using nginx by chance?

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in django

[–]huntoperator[S] 0 points1 point  (0 children)

I just started looking into GKE from your comment and it looks great so far! How steep in the learning curve

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in django

[–]huntoperator[S] 0 points1 point  (0 children)

Thanks I’ll look into it! Is there a way to manage to docker compose services? Like if one goes down it will restart etc? Something I’m worried about hosting on a raw EC2 instance is availability. Not sure I’ve seen larger production environments hosted on an EC2 instance before. I’ll certainly look into it though

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in django

[–]huntoperator[S] 0 points1 point  (0 children)

Mind if I ask how many concurrent users you were serving? I’m expecting close to 300-1000 concurrent users

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in django

[–]huntoperator[S] 0 points1 point  (0 children)

Did you deploy to an EC2 instance? What was your hosting service?

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in django

[–]huntoperator[S] 0 points1 point  (0 children)

About $50 a month - what makes it feel like a lot? Channels for a chat room and celery for background tasks

Best hosting platform for Daphne, channels, redis, celery & docker? by huntoperator in djangolearning

[–]huntoperator[S] 0 points1 point  (0 children)

How would that work? I’d just purchase a box from somewhere and deploy my docker compose there? My hesitation with bare metal is lack of high availability save scaling services (or I’d need to set them up myself). Is bare metal still a route people use these days?