Giter VIP home page Giter VIP logo

inspire-demo's Introduction

inspire-demo

日常代码练习demo

  • 栈的实现
    • (1)栈的两种实现: 数组和链表
    • (2)栈的编程练习题: 使用栈实现表达式计算、
    • 《剑指offer》获取栈的最小数(双栈使用)
  • 队列的实现
    • (1)队列的两种实现: 数组和链表
    • (2)循环队列实现
    • (3)阻塞队列实现
    • (4)《剑指offer》用两个栈实现队列
  • V1版本:

    • (1)限流规则配置: 暂时只支持Yaml配置;
    • (2)限流算法:只支持固定时间窗口算法;
    • (3)限流模式:只支持单机模式;
    • (4)接口类型:只支持Http接口;
  • V2版本:

    • (1) 优化RateLimitAlg,提供抽象限流算法接口;
    • (2) 优化RateLimitRule, 提供抽象规则查找;
    • (3) 限流规则读取优化;
  • 延时队列 - 时间轮实现
    • (1)代码链接
    • (2)支持添加任务, 支持与Spring结合, 支持实时查看任务执行情况
    • (3)时间轮算法应用:监测多用户TCP是否在线
  • 分布式锁 - Spring Data Redis分布式锁实现
    • (1)代码链接
    • (2)Redis分布式锁实现,本地锁 + Redis
    • (3)测试用例模拟秒杀场景

inspire-demo's People

Contributors

genshenwang avatar

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.