Coder Social home page Coder Social logo

palexu.github.io's Introduction

Hi there 👋

Palexu's github stats

palexu.github.io's People

Watchers

 avatar  avatar

palexu.github.io's Issues

基于 Netty 的 IM 系统 (对网上相关资料进行整理) | Junyu's Blog

https://palexu.github.io/2019/06/20/2019-06-20-im-system-based-on-netty/#more

处于学习netty的目的, 需要进行一些项目时间. 目前的工作暂时接触不到相关的内容, 所以考虑自己造一个项目. 目前网上已经有对应的项目了: Netty 入门与实战:仿写微信 IM 即时通讯系统, 花了几分钟看了一下, 似乎没有看到比较困难的点, 基本上就是实现了基础功能吧. 这篇文章主要介绍的还是netty的一些常用操作和属性, 适合我用来入门查看. 开新项目的目标: 学习 netty,

JStorm 源码分析 - 高性能队列 DisruptorQueue | Junyu's Blog

https://palexu.github.io/2019/01/16/2019-01-16-lean-jstorm-source-queue/#more

在上一篇文章中( JStorm 源码分析 - tuple 在整个拓扑中的流转过程), 我们多次提到 JStorm 使用了 3 个队列来完成 tuple 的缓冲与消费. 因此这些队列的性能会制约 JStorm 的总体的吞吐量. 在日常的工程实践当中, 我们会使用一些 Java 的内置队列来完成这个工作, 比如 ArrayBlockingQueue. 实际上, 如果要追求更高的性能, Disrupt

分布式 id 生成器 - DID (Distribute Id Generator) | Junyu's Blog

https://palexu.github.io/2019/10/26/2019-10-26-snowflake-md/

  1. 需求目前每个应用如果想要使用分布式id功能, 都需要在各自的数据库中新增did表,在代码中加入mapper等,使用较麻烦. 现在希望将分布式id生成器功能封装成工具类提供. 期望做到引入maven依赖即可使用, 且做到本地生成分布式id时高性能、不重复. 并且需要适用于之后容器化部署的场景. 设计简单可靠, 尽量减少第三方业务的依赖 2. 现状

别拿 byte [] 数组作为 key | Junyu's Blog

https://palexu.github.io/2017/06/28/2017-06-28-not-use-byte[]-as-key-of-hashmap/

byte[]数组作为key值,只是数组的地址的引用的hashcode,不能够根据byte[]数组的内容来,创建相应的hashcode,也就是所谓的索引key。所以,如果想用byte[]数组来作为map的key值的话,有三种方法: 将byte[],先转化为string 将采用list 将byte[]自己包装,使用byte[]数组的内容来重写hashcode和equals方法

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.