Giter VIP home page Giter VIP logo

community's Introduction

项目介绍

一个仿照牛客网实现的讨论社区,不仅实现了基本的注册,登录,发帖,评论,点赞,回复功能,同时使用前缀树实现敏感词过滤,实现网站UV和DAU统计,并将用户头像等信息存于七牛云服务器。

技术选型

功能简介

  • 使用Spring MVC拦截器和ThreadLocal进行用户状态管理;
  • 使用Trie前缀树对敏感词过滤处理;
  • 使用Spring AOP对用户操作进行统一的日志记录;
  • 使用Redis存储登录ticket和验证码,解决分布式session问题,使用Redis的set实现点赞,zset实现关注,HyperLogLog统计UV,Bitmap统计DAU;
  • 使用Kafka处理发送评论、点赞和关注等系统通知,起到解耦和异步调用的作用;
  • 对热帖排行模块,使用分布式缓存Redis和本地缓存Caffeine作为多级缓存,将QPS提升了20倍(10-200),大大提升了网站访问速度,并使用Quartz定时更新热帖排行榜。

运行效果展示

  • 首页
  • 消息

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.