Giter Club home page Giter Club logo

Comments (1)

JamesChenX avatar JamesChenX commented on June 22, 2024

生产环境和预发环境使用同一个mongodb,注册中心使用不同的注册中心

It's practical but not recommended. From the perspective of data security, you should use different MongoDB clusters for different environments.

If you still want to use the same MongoDB cluster for different environments, remember to configure different databases for different environments. e.g.:

  1. mongodb://localhost:27017/my-app-qa
  2. mongodb://localhost:27017/my-app-uat
  3. mongodb://localhost:27017/my-app-prod

那么redis使用同一个,database也使用同一个是否会有问题?还是redis必须隔离?

It's not practical to use the same Redis instance for different environments because some keys will conflict.
Though Redis supports switching to different databases (0~15), we don't plan to support it because it is an error-prone practice for engineers, and it's insecure too, while deploying another Redis instance/cluster should be quite easy.

So it's recommended to deploy another Redis instance/cluster.

from turms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.