<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Java on haifeiWu</title><link>https://haifeiWu.github.io/categories/java/</link><description>Recent content in Java on haifeiWu</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>whfstudio@163.com (haifeiWu)</managingEditor><webMaster>whfstudio@163.com (haifeiWu)</webMaster><copyright>© 2016～2026 haifeiWu</copyright><lastBuildDate>Thu, 14 Jan 2021 00:00:00 +0800</lastBuildDate><atom:link href="https://haifeiWu.github.io/categories/java/index.xml" rel="self" type="application/rss+xml"/><item><title>Kafka 的日志复制机制</title><link>https://haifeiWu.github.io/posts/kafka-de-ri-zhi-fu-zhi-ji-zhi/</link><pubDate>Thu, 14 Jan 2021 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/kafka-de-ri-zhi-fu-zhi-ji-zhi/</guid><description>Kafka 是一个分布式的发布 订阅消息系统。它最初是在 LinkedIn 开发的，2011年7月成为一个 Apache 项目。今天，Kafka 被 LinkedIn、Twitter 和 Square 用于日志聚合、队列、实时监控和事件处</description></item><item><title>二分查找算法细节详解</title><link>https://haifeiWu.github.io/posts/er-fen-cha-zhao-suan-fa-xi-jie-xiang-jie/</link><pubDate>Sun, 01 Sep 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/er-fen-cha-zhao-suan-fa-xi-jie-xiang-jie/</guid><description>思路 我相信对很多读者朋友来说，编写二分查找的算法代码属于玄学编程，虽然看起来很简单，就是会出错，要么会漏个等号，要么少加个 1。不要气馁，因为二分查找其实并不简单。看看 Knuth 大佬（发明 KMP 算法的那位）怎么说的：Altho</description></item><item><title>[译] 为什么 String 在 Java 中是不可变的</title><link>https://haifeiWu.github.io/posts/yi---wei-shen-me-string-zai-java-zhong-shi-bu-ke-bian-de/</link><pubDate>Mon, 08 Jul 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/yi---wei-shen-me-string-zai-java-zhong-shi-bu-ke-bian-de/</guid><description>String 在 Java 中是不可变的。不可变类只是一个无法修改其实例的类。创建实例时，将初始化实例中的所有信息，并且无法修改信息。不可变类有许多优点。本文总结了为什么 String 设计为不可变的。这篇文章从内存，同步和数据结</description></item><item><title>LRU 算法</title><link>https://haifeiWu.github.io/posts/lru--suan-fa/</link><pubDate>Sat, 29 Jun 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/lru--suan-fa/</guid><description>What？LRU 是 Least Recently Used 的缩写，即最近最少使用，是一种常用的页面置换算法，选择最近最久未使用的页面予以淘汰。该算法赋予每个页面一个访问字段，用来记录一个页面自上次被访问以来所经历的时间 t，当须淘汰</description></item><item><title>Nacos 配置中心的调研</title><link>https://haifeiWu.github.io/posts/nacos--pei-zhi-zhong-xin-de-diao-yan/</link><pubDate>Fri, 15 Mar 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/nacos--pei-zhi-zhong-xin-de-diao-yan/</guid><description>进一步减少不必要的重复工作，最近打算在把之前的项目重构成 SpringBoot 项目之后，源于 N 台机器配置的管理甚是麻烦，所以便有了进一步将项目的配置进行统一的管理的需求。是什么？Nacos 致力于帮助您发现、配置和管理微服务。N</description></item><item><title>LeetCode 每日一题（day 1）</title><link>https://haifeiWu.github.io/posts/leetcode--mei-ri-yi-ti--day-1/</link><pubDate>Wed, 13 Feb 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/leetcode--mei-ri-yi-ti--day-1/</guid><description>题目 题目描述：给定一个按非递减顺序排序的整数数组 A，返回每个数字的平方组成的新数组，要求也按非递减顺序排序。示例 1：输入：4, 1,0,3,10 输出：0,1,9,16,100 示例 2：输入：7, 3,2,3,11 输</description></item><item><title>ArrayBlockingQueue 阻塞队列</title><link>https://haifeiWu.github.io/posts/arrayblockingqueue--zu-se-dui-lie/</link><pubDate>Sun, 27 Jan 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/arrayblockingqueue--zu-se-dui-lie/</guid><description>一直都在写业务代码，对于 jdk 底层的代码难免有些疏忽，所以决定把一些比较重要的源码过一遍……是什么？ArrayBlockingQueue 是一个用数组实现的有界阻塞队列。此队列按照先进先出（FIFO）的原则对元素进行排序。默认情况</description></item><item><title>Pika 性能优化</title><link>https://haifeiWu.github.io/posts/pika--xing-neng-you-hua/</link><pubDate>Wed, 09 Jan 2019 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/pika--xing-neng-you-hua/</guid><description>最近在迁移线上 Redis 到 Pika 的过程中，因为业务需要，需要对项目中原有对 pika 读取操作的代码进行优化，最后结果就是读取百万级的数据由原来的 30 降低到 10分钟左右。Pika 是什么 Pika 是 DBA 需求，基础架构组开发</description></item><item><title>Spring 5 WebFlux 性能测试[译]</title><link>https://haifeiWu.github.io/posts/spring-5-webflux--xing-neng-ce-shi---yi/</link><pubDate>Sun, 11 Nov 2018 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/spring-5-webflux--xing-neng-ce-shi---yi/</guid><description>Java 世界对反应式编程抱有很高的期望。根据 官方文档 的描述，它使程序员能够构建更具弹性，弹性，响应和消息驱动的应用程序。简而言之，它是一种更好，更快，更现代的模型，可以防止应用程序空闲。Spring 5 通过结合基于 Proje</description></item><item><title>安全闲扯</title><link>https://haifeiWu.github.io/posts/an-quan-xian-che/</link><pubDate>Mon, 22 Oct 2018 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/an-quan-xian-che/</guid><description>这个虽然是闲扯淡的，但是看的时候请抓牢：我们一切以业务方案为目的，一些关键名词和概念还是很认真。加密签名 一个故事 这是从别人那边听来的故事，作为安全知识的入门非常有意义。1. 一个国王英年早逝，留下年幼的王子，国王的弟弟就做了摄政</description></item><item><title>MySQL 的七种 join</title><link>https://haifeiWu.github.io/posts/mysql--de-qi-zhong--join/</link><pubDate>Mon, 06 Feb 2017 00:00:00 +0800</pubDate><author>whfstudio@163.com (haifeiWu)</author><guid>https://haifeiWu.github.io/posts/mysql--de-qi-zhong--join/</guid><description>对于 SQL 的 Join，在学习起来可能是比较乱的。我们知道，SQL 的 Join 语法有很多 inner 的，有 outer 的，有 left 的，有时候，对于 Select 出来的结果集是什么样子有点不是很清楚。Coding Horror 上有一篇文章（实在不清楚</description></item></channel></rss>