Giter Site home page Giter Site logo

bineyond.github.io's People

Contributors

bineyond avatar

Watchers

 avatar

bineyond.github.io's Issues

Go防缓存击穿 singleflight | 薛定谔の猫

https://ubin.top/2020/03/15/Go%E9%98%B2%E7%BC%93%E5%AD%98%E5%87%BB%E7%A9%BFsingleflight/

缓存更新问题缓存是高并发业务的基石,当访问量突然上升的时候,缓存失效回源时会将请求打到后台数据库,导致服务器响应延迟或者宕机的情况。 通常缓存更新方案: 1.业务代码中,根据key从缓存拿不到数据,访问存储层获取数据后更新缓存 2.由专门的定时脚本在缓存失效前对其进行更新 3.通过分布式锁,实现只有一个请求负责缓存更新,其他请求等待:一种基于哨兵的缓存访问策略 通常获取缓存这样写: 1234d

supervisor 使用说明 | 薛定谔の猫

https://ubin.top/2020/12/29/supervisor/

Supervisor简单介绍supervisor是一个 Client/Server模式的系统,允许用户在类unix操作系统上监视和控制多个进程,或者可以说是多个程序。supervisor与launchd,daemontools,runit等程序有着相同的功能,与其中某些程序不同的是,它并不作为“id 为 1的进程”而替代init。相反,它用于控制应用程序,像启动其它程序一样,通俗理解就是,把Sup

值得推荐的C/C++框架和库 | 薛定谔的猫

https://ubin.top/2016/03/11/%E5%80%BC%E5%BE%97%E6%8E%A8%E8%8D%90%E7%9A%84C-C-%E6%A1%86%E6%9E%B6%E5%92%8C%E5%BA%93/

值得学习的C语言开源项目1. WebbenchWebbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。Webbench使用C语言编写, 代码实在太简洁,源码加起来不到600行。下载链接:http://home.tiscali.cz/~cz210552/we

Go防缓存击穿 singleflight | 薛定谔の猫

https://ubin.top/2020/03/15/Go%E9%98%B2%E7%BC%93%E5%AD%98%E5%87%BB%E7%A9%BFsingleflight/

缓存更新问题缓存是高并发业务的基石,当访问量突然上升的时候,缓存失效回源时会将请求打到后台数据库,导致服务器响应延迟或者宕机的情况。 通常缓存更新方案: 1.业务代码中,根据key从缓存拿不到数据,访问存储层获取数据后更新缓存 2.由专门的定时脚本在缓存失效前对其进行更新 3.通过分布式锁,实现只有一个请求负责缓存更新,其他请求等待:一种基于哨兵的缓存访问策略 通常获取缓存这样写: 1234d

服务优雅重启及热更新 | 薛定谔の猫

https://ubin.top/2020/03/16/%E6%9C%8D%E5%8A%A1%E4%BC%98%E9%9B%85%E9%87%8D%E5%90%AF%E5%8F%8A%E7%83%AD%E6%9B%B4%E6%96%B0/#more

12https://segmentfault.com/a/1190000013757098https://studygolang.com/articles/27226 目的 不关闭现有连接(正在运行中的程序) 新的进程启动并替代旧进程 新的进程接管新的连接 连接要随时响应用户的请求,当用户仍在请求旧进程时要保持连接,新用户应请求新进程,不可以出现拒绝请求的情况 流程 1、替换可执行文件或修改配置

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.