Code Monkey home page Code Monkey logo

hm-dianping's Introduction

hm-dianping

黑马点评redis
2023/4/4 完成商户缓存,包括缓存击穿的处理,逻辑过期和互斥锁。
2023/4/5 完成优惠券的一人一单,通过乐观锁来解决,还有待完成的分布式锁来解决集群问题。
2023/4/6 分布式锁解决集群下线程问题,了解redisson的使用,解决集群的并发,可重用等等问题,又使用了阻塞队列来减少订单生成中间步骤分成两部分,一部分是检验订单,另一部分付款,减少代码复杂度,使用lua脚本来完成第一部分内容
2023/4/7 了解redis消息队列stream来实现异步下单,简化很多代码,直接在lua脚本设置相应参数。还有发布探店笔记,将图片存在本地前端文件里面,模拟上传,点赞功能实现,一个人只能点一个赞,通过redis的set集合实现。关注和取关也是通过set实现。 排行榜通过sortedset实现,较为复杂。共同关注通过set的并集完成。滚动分页查看用户关注的主播的笔记,较为复杂,使用推模式。 2023/4/8完成附近商户queryShopByType内容,采用redis的geo数据存储,了解大概的用法,主要是根据商铺类型先存储,然后将商铺id进行存储,实现较为复杂。用户签到功能,使用bit存储结构,存储用户id和当前年份月份来作为key,签到了是1,否则为0,结果是二进制,可以通过和1进行与运算,然后右移得出签到天数。了解hyperlog。

hm-dianping's People

Contributors

flycodeu avatar

Watchers

Kostas Georgiou avatar  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.