Why use Redis with PostgreSQL, why not just one of them? [closed] - django

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have seen all over the web that people are configuring their PostgreSQL along side Redis. My question is, why would someone want to use in-memory storage system like Redis, when they have already configured permanent storage system like PostgreSQL.
I get that Redis works with RAM and that it is much faster, but is that the only reason?

There might be lot of combinations why people use that stack, but this is not necessary for all sites. That might be used, for example, for counting most visited pages, or Redis is good brocker for using with async tasks, like Celery. But yep, on my oponion the only reason to use it - is speed.

Related

How to integrate a Web Application firewall (ModSecurity) with Heroku? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I have an application running on the flask server in Heroku. This there any way to integrate ModSecurity or any open-source Web Application Firewall (WAF) to protect my application in Heroku. Any other related answer or help regarding this is also highly appreciated.
There is a Python binding for libmodsecurity3: https://github.com/pymodsecurity/pymodsecurity. In the README, you can find an example for Django - may be you can use that in case of Flask too.
Note, that binding supports only v3.0.3, but the current version is v3.0.4 (libmodsecurity3), and that's nearly 1 year old. The current master branch contains so many changes from that version.

CloudFormation is it part of the architecture of my project? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I use CDK for all infrastructure on AWS, but has many problems (problems like ROLLBACK, which a cant make deploy, need destroy all stacks related and then make deploy again) with CloudFormation and people on work saying that should't not consider on part of my architecture and not should discuss about that. When say architecture i referer on all technologies i used to build my projects.
May I consider that I should discuss CloudFormation in my architecture and know and is it part?
It absolutely does make sense discussing CF/IaaC in the frame of your architecture.
It is defilitely "part".
I'd discuss this in Deployment view.

Make my Django app into a rentable service for companies [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a webapp running with Django. I would like to make an Enterprise Edition of this website. In exchange for a yearly fee, I would like to allow companies to host the webapp on their own server and benefit from unique features
The problem is that I have no idea how to proceed. How can I execute this, without sending my whole code over to their computer and launching the django app there?
Is there something like generating an .exe that would run the django app without sending my code? How do companies usually proceed to make their tools available on another company's intranet?
well I haven't heard something like that, but what you can do is using a license in your code, there are many types of licenses, from open source to trade secret license, read more about it

DB to use for coding a twitter clone for a beginner [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am coding (learning to) a twitter clone and i am a beginner, just built a few apps using Django. Should I be learning Redis and use it or go with MySQL, Postgres etc in the beginning and then use Redis for better performance?
If your goal is to just learn, you should go with SQLite3 if you wanna drop and recreate the database several times.
If you want something a little bit more robust for learning, go with MySQL. Easy to install localy, you have a lot of frameworks to connect and make queries and validate data.
Don't use Redis as the database here, since you'll have a hard time using the Django ORM.
Hope it helps! :)

How can I export a SQLAlchemy schema for Breeze? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have implemented a collection of APIs using Flask + SQLAlchemy backend. I want to use BreezeJS in the frontend. How can I export my db schema which can be understood by Breeze JS?
Davidism is correct on both counts.
Breeze needs metadata for the JSON at the server boundary. That may map directly to your db schema but it doesn't have to.
You can define the metadata entirely in code and that may be easier than trying to generate it from your db schema. It's really not hard to write metadata by hand.
It's up to you to decide how much of the breeze query URI (OData query) you want to support server side. You don't have to support the query at all. Plenty of folks find plenty of value in breeze w/o querying simply from how it helps manage data on the client.