# Awesome Java 8 [![Build Status](https://travis-ci.org/tedyoung/awesome-java8.svg?branch=master)](https://travis-ci.org/tedyoung/awesome-java8) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
A truly curated list of useful, if not amazingly awesome, tools, libraries, frameworks, and other resources that take advantage of (or even require) Java 8 features, such as Lambdas, or have a more modern approach to writing Java code. Those that **require** Java 8 are marked with an :8ball: emoji (for "eight ball" or sometimes "billiards").
If you want a larger list of Java resources not specific to Java 8, check out [Awesome Java](https://github.com/akullpp/awesome-java).
----
# Contents
- [Libraries and Frameworks](#libraries-and-frameworks)
- [Caching libraries](#caching-libraries)
- [Distributed Systems libraries](#distributed-systems-libraries)
- [Functional libraries](#functional-libraries)
- [General-purpose libraries](#general-purpose-libraries)
- [Interoperability libraries](#interoperability-libraries)
- [Microservices](#microservices)
- [Networking libraries](#networking-libraries)
- [Persistence libraries](#persistence-libraries)
- [Reactive libraries](#reactive-libraries)
- [Streams libraries](#streams-libraries)
- [Testing](#testing)
- [Web App/API frameworks](#web-appapi-frameworks)
- [Tools](#tools)
- [Books](#books)
----
# Libraries and Frameworks
Libraries and frameworks become part of your runtime artifact. Libraries consist of code that you call, whereas frameworks require that you inherit from classes or implement interfaces defined in that framework. *Modern Java* prefers the delegation model of Libraries vs. the inheritance model of frameworks, however in some cases, frameworks might be worth the inheritance cost, e.g., web frameworks.
## Caching Libraries
* [Caffeine](https://github.com/ben-manes/caffeine) - High performance Java 8-based in-memory caching library providing a near optimal "hit rate". Well-documented and flexible. :8ball:
## Distributed Systems libraries
Libraries that support distributed systems, e.g., queues, key-value stores, and quorum/consensus.
* [Atomix](http://atomix.io/atomix/) - Event-driven framework for coordinating fault-tolerant distributed systems built on the Raft consensus algorithm. :8ball:
## Functional libraries
Libraries that make Java 8 more functional, especially filling in the gaps in streams.
For strictly stream enhancements, go to the [Streams libraries](#streams-libraries) section.
* [Derive4J](https://github.com/derive4j/derive4j) - Code generator for user-defined algebraic data types (aka sum types) based on an enhanced "visitor" pattern. Provides structural pattern matching, laziness, functional setters (return a copy of an object with one field modified) & more. :8ball:
* [Vavr](http://www.vavr.io/) - Adds the notion of Tuples, along with immutable Values and Pattern Matching, to make it easier to write more functional Java code. (Formerly known as Javaslang.) :8ball:
* [jOOλ](https://github.com/jOOQ/jOOL) - Part of the jOOQ series of libraries, provides more Functions, Tuples, and `Seq` that provides methods like `crossJoin()`, `join()`, and `groupBy()`. :8ball:
* [NoException](https://noexception.machinezoo.com/) - Allows checked exceptions in functional interfaces and converts exceptions to Optional return. :8ball:
* [ProtonPack](https://github.com/poetix/protonpack) - Offers about a dozen utilities for `Stream`, e.g., `takeWhile`, `zip`, `aggregate`, and a `unique` collector. :8ball:
## General-purpose libraries
For libraries with many features that don't fit in a single category. _Honestly, this section was just created so that it can hold Guava, which as of [Release 21](https://github.com/google/guava/wiki/Release21) requires Java 8+._
* [Guava](https://github.com/google/guava) - One of the most widely used and well-written general-purpose Java libraries. As of Release 21, only works with Java 8 (or later). :8ball:
## Interoperability libraries
Not sure what to call these other than interoperability libraries, i.e., libraries that make it easier to work with existing libraries that Java 8 provides. I could be convinced to put this under Functional libraries...
* [Cyclops](https://github.com/aol/cyclops) - Very modular, so only include what you need. From function exception handling (`try`), to generic monad operations, to pattern matching. Specific integrations to Javaslang, functionaljava, and Guava. :8ball:
## Microservices
While the term can sometimes be ambiguous, hopefully it'll become more clear as new libraries and frameworks become available. This section may include entire frameworks, or libraries that help with coordinating and connecting separately deployed services (aka microservices).
For HTTP-based services, see [Web App/API frameworks](#web-appapi-frameworks).
* [Apollo](http://spotify.github.io/apollo/) - A library for writing HTTP microservices that focuses on composability and simplicity, with high performance using modern Java idioms and features. :8ball:
* [SnoopEE](https://github.com/ivargrimstad/snoop) - While this is "experimental", it's worth looking at if you're coming to microservices from a "slimmed down" Java EE point of view and need something to handle service discovery. This was shown in a JavaOne 2015 conference talk [here](https://www.youtube.com/watch?v=REuBLPTeFDg). :8ball:
## Networking libraries
Perhaps this belongs in "distributed systems libraries", since dist-sys requires resiliency, though I like calling out resiliency as it's often overlooked.
I'll leave this here for now until someone has an opinion.
* [Resilience4j](https://github.com/resilience4j/resilience4j) - A lightweight, easy-to-use, fault-tolerance library designed for Java8 and functional programming (inspired by Netflix's Hystrix).
In addition to circuit-breakers, also retries, rate-limiting, and metrics. :8ball:
## Persistence libraries
* [Speedment](https://github.com/speedment/speedment) - A fluent database access library that looks just like Java 8 code, using the Stream API for querying. Supports MySQL, MariaDB, and PostgreSQL. :8ball:
## Reactive libraries
Focused on "pulling" items from a stream. There may be overlap between these libraries and the Functional ones (above), but the ones here are primarily/exclusively focused on the [Reactive](http://www.reactive-streams.org/) way of thinking about streams.
* [Cyclops React](https://github.com/aol/cyclops-react) - A library that focuses on users needing async and lazy streams (formerly Simple React). Very well documented with lots of diagrams (yay!). :8ball:
* [Project Reactor](http://projectreactor.io/) - A second-generation Reactive library for building non-blocking applications on the JVM based on the Reactive Streams Specification.
It directly interacts with the Java 8 functional API, Completable Future, Stream and Duration. :8ball:
## Streams libraries
These are libraries that enhance the existing Java 8 Streams, but aren't trying to define a completely new API.
I could be convinced to put these under the [Functional](#functional-libraries) libraries, but until then...
* [StreamEx](https://github.com/amaembo/streamex) - Does what it says: enhances the Java 8 streams. The ["cheat sheet"](https://github.com/amaembo/streamex/blob/master/CHEATSHEET.md) is really nice: if you know what you want (e.g., swap keys and values coming from entries in a map), it tells you how to get it. :8ball:
## Testing
* [AssertJ](http://joel-costigliola.github.io/assertj/index.html) - Fluent assertions for Java unit testing, with the 3.0 release requiring Java 8. :8ball:
* [Lambda Behave](http://richardwarburton.github.io/lambda-behave/) - BDD-oriented framework that leverages lambdas to make tests more "behavioral". If you've seen Jasmine or Spock, thi
没有合适的资源?快使用搜索试试~ 我知道了~
精心挑选了一些有用的(即使不是令人惊叹的)资源列表,这些资源利用了 Java 8 和“现代 Java”思维 .zip
共7个文件
md:3个
txt:2个
yml:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 131 浏览量
2024-11-25
14:37:34
上传
评论
收藏 10KB ZIP 举报
温馨提示
很棒的 Java 8 这是一个真正有用的工具、库、框架和其他资源的精选列表,即使不是非常棒,它们也利用(甚至需要)Java 8 功能(例如 Lambda),或者采用更现代的方法来编写 Java 代码。需要Java 8 的那些用 表情符号标记(表示“八球”或有时表示“台球”)。如果您想要一份不特定于 Java 8 的更大的 Java 资源列表,请查看Awesome Java。内容库和框架缓存库分布式系统库功能库通用库互操作性库微服务网络库持久性库反应式库流库测试Web 应用程序/API 框架工具图书库和框架库和框架成为运行时工件的一部分。库由您调用的代码组成,而框架则要求您从类继承或实现该框架中定义的接口。现代 Java更喜欢库的委托模型,而不是框架的继承模型,但在某些情况下,框架可能值得继承成本,例如 Web 框架。缓存库Caffeine - 基于 Java 8 的高性能内存缓存库,提供接近最佳的“命中率”。文档齐全且灵活。分布式系统库支持分布式系统的库,例如队列、键值存储和仲裁/共识。Atomix - 基于 Raft
资源推荐
资源详情
资源评论
收起资源包目录
精心挑选了一些有用的(即使不是令人惊叹的)资源列表,这些资源利用了 Java 8 和“现代 Java”思维。.zip (7个子文件)
.travis.yml 182B
标签.txt 41B
LICENSE 6KB
CONTRIBUTING.md 1KB
资源内容.txt 1KB
about.md 397B
README.md 11KB
共 7 条
- 1
资源评论
徐浪老师
- 粉丝: 8455
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功