Coder Social home page Coder Social logo

go_code's Introduction

go_code

go_code's People

Contributors

mnhkahn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go_code's Issues

问题请教

在这个大促的日子聊一聊我的大促经历
在这篇文章里面有

性能
对于性能最重要的指标还是TP99,公司对性能其实有不成文的规定,TP99要小于200ms。如果>> 大于这个值,用户会明显觉得卡顿。

禁止读库、禁止跨机房调用
线上只读服务,比如我们列表服务,禁止直连数据库。用户的任何操作都不能发生数据库操作。平时我们经常会写这种接口:取缓存读数据,没有的话去读库,然后把数据设置到缓存里。这种方案只适用于小流量的情况,一旦数据库来个慢查询或者数据量变大,所有接口都会挂,所有哦。这也算是雪崩的一种吧。

跨机房调用一个是慢,一个是这样的话就失去了双活的意义了。不过我们的降级方案里有跨机房方案,不过常规方案里要禁止。

Q1: 请问下,不直连数据库的话,怎么操作数据?缓存?
Q2:如果是缓存的话,怎么保证事务的一致性?
Q3: 你们用的什么数据库中间件?
Q4: 性能测试的话,用的什么工具?

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.