NEWS | 任何关于 Gravity 主题的问题,您可以加入讨论群 776203334

Theme Gravity

Gravity 主题的灵感源自 spring.io 官网。Gravity 是一款专为技术写作型博客而打造的,适用于 Halo 平台的原创主题。Gravity 主题的设计沉稳而有力,没有过多的复杂的元素在内,这不仅使读者阅读文章时能有更好的体验,也能使撰写者创作出更好的文章内容。

Lucence Editor

Lucence Editor 是以 Toast UI Editor 为内核而打造的功能性更好的 Markdown 编辑器。经过长期的适配、调整与改进,Lucence Editor 不仅解决了 Tool Bench 插件带来的错误文章结构问题,更打造了沉浸式的 Markdown 撰写环境。

Virtual Thread

In traditional Java high-concurrency projects, context switching of threads brings huge memory overhead. The emergence of thread pools solved these problems to some extent, but Java threads still could not escape the control of the OS. Thus, virtual threads came into being.

Structured Concurrency

Structured Concurrency is avaiable as an incubator API in the JDK 19. This is still about Project Loom, probably one of the most anticipated features of the JDK 19. There are two things we need to remember about virtual threads. First, they are cheap to create, and much cheaper than the regular platform threads we've been using in the JDK for many years, in fact, since the beginning of Java. Second, they are cheap to block.

ThreadLocal与ScopedValue

ThreadLocal是一种实现将变量在各线程之间隔离的方案,也叫线程局部变量表。在Java中每个线程都拥有一个ThreadLocal下的ThreadLocalMap类型的变量,它用来存储定义在线程中的ThreadLocal对象,ThreadLocalMap的键是一个弱引用,指向对应的ThreadLocal对象。但值得每一位Java开发者注意的是ThreadLocal变量如果不及时remove()会造成严重的内存泄露问题。

异步拉取和风天气

在上一篇文章《并发编排与响应式初步》,我们已经对CompletableFuture的功能进行了深入的探讨,并简要介绍了Reactor响应式流相关的概念。然而,要熟练掌握异步任务编排并非一朝一夕之事,尤其是在需要处理 I/O 密集型应用或者一些特殊场景。

为什么要求开发者对Logger再封装

在《嵩山版阿里Java开发手册》的日志规约中第一条明确规定了:应用中不可直接使用日志系统(Log4j、Logback)中的 API,而应依赖使用日志框架 (SLF4J、JCL--Jakarta Commons Logging)中的 API,使用门面模式的日志框架开发。

分布式与微服务

微服务是基于<span class="wave-blue">分而治之</span>的思想演化出来的。过去传统的一个大型而又全面的系统,随着互联网的发展已经很难满足市场对技术的需求,于是我们从单独架构发展到分布式架构,又从分布式架构发展到 `SOA` 架构,服务不断的被拆分和分解,粒度也越来越小,直到微服务架构的诞生。