No description
Find a file
He-Pin(kerr) 7cf3f6193d
feat: Add andThen and compose to japi function (#2147)
* feat: Add andThen and compose to japi function

* Update actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update actor/src/main/scala/org/apache/pekko/japi/function/Function.scala

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* .

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-06 01:36:10 +08:00
.github chore(deps): bump VirtusLab/scala-cli-setup from 1.8.5 to 1.9.0 (#2138) 2025-09-04 04:45:52 +08:00
actor/src/main feat: Add andThen and compose to japi function (#2147) 2025-09-06 01:36:10 +08:00
actor-testkit-typed/src bind instanceof to named variables (#2088) 2025-08-25 13:44:38 +01:00
actor-tests/src/test feat: Add andThen and compose to japi function (#2147) 2025-09-06 01:36:10 +08:00
actor-typed/src/main chore: Remove SecurityManager usage. (#2106) 2025-08-30 20:36:13 +08:00
actor-typed-tests/src/test bind instanceof to named variables (#2088) 2025-08-25 13:44:38 +01:00
bench-jmh chore: Remove SecurityManager usage. (#2106) 2025-08-30 20:36:13 +08:00
cluster chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
cluster-metrics/src generate source with protobuf 32 (#2036) 2025-08-20 08:21:18 +01:00
cluster-sharding/src generate source with protobuf 32 (#2036) 2025-08-20 08:21:18 +01:00
cluster-sharding-typed/src refactor some more casts (#2090) 2025-08-25 15:23:29 +01:00
cluster-tools/src chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
cluster-typed/src refactor some more casts (#2090) 2025-08-25 15:23:29 +01:00
coordination/src chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
discovery/src chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
distributed-data/src chore: bump scalafmt to 3.9.9 (#2047) 2025-08-23 17:34:23 +08:00
docs/src chore: Make use of japi.function in stream api. (#2143) 2025-09-05 03:24:26 +08:00
kubernetes Try running Aeron tests again (#31172) 2022-02-22 12:56:29 +01:00
legal add 2025 to copyright (#1651) 2024-12-31 12:53:07 +01:00
multi-node-testkit/src/main generate source with protobuf 32 (#2036) 2025-08-20 08:21:18 +01:00
osgi/src fix build issue related to URL deprecation (#1999) 2025-08-03 10:55:16 +01:00
persistence/src use Java CompletionStage instead of Scala Future in pekko-persistence Java APIs (#2092) 2025-08-25 23:30:16 +01:00
persistence-query/src chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
persistence-shared/src/test/scala/org/apache/pekko/persistence chore: bump scalafmt to 3.9.7 (#1916) 2025-06-24 10:27:14 +02:00
persistence-tck/src adjust ASF header (#450) 2023-06-22 14:19:26 +01:00
persistence-testkit/src chore: bump scalafmt to 3.9.7 (#1916) 2025-06-24 10:27:14 +02:00
persistence-typed/src chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
persistence-typed-tests/src/test chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
pki/src chore: bump scalafmt to 3.9.7 (#1916) 2025-06-24 10:27:14 +02:00
plugins/serialversion-remover-plugin/src/main compile issue (#1723) 2025-01-16 16:58:03 +01:00
project Update netty-handler, netty-transport to 4.2.5.Final (#2133) 2025-09-04 00:37:40 +08:00
remote/src bind instanceof to named variables (#2088) 2025-08-25 13:44:38 +01:00
remote-tests/src generate source with protobuf 32 (#2036) 2025-08-20 08:21:18 +01:00
scripts chore: bump Scala to 2.13.16 (#1704) 2025-01-10 21:44:48 +01:00
serialization-jackson/src chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
slf4j/src Update scalafmt-core to 3.8.4 (#1717) 2025-01-18 10:36:38 +08:00
stream/src/main chore: Add doc for AsyncCallback (#2142) 2025-09-05 05:56:24 +08:00
stream-testkit/src Make use of eq and ne. (#1994) 2025-08-03 17:32:32 +08:00
stream-tests/src/test chore: Drop ActorMaterializer class. (#2137) 2025-09-04 04:55:07 +08:00
stream-tests-tck/src/test feat: Add flatten operator. 2024-01-14 20:24:06 +08:00
stream-typed/src chore: Make use of japi.function in stream api. (#2143) 2025-09-05 03:24:26 +08:00
stream-typed-tests/src/test/scala/org/apache/pekko/stream chore: Tweak withAttribuets in Flow (#1658) 2025-02-16 14:27:51 +08:00
testkit/src chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
.asf.yaml protect 1.2.x branch (#1964) 2025-07-27 11:16:23 +01:00
.git-blame-ignore-revs chore: ignore java fmt (#2089) 2025-08-25 19:39:30 +08:00
.gitattributes Add .gitattributes to enforce unix line endings 2022-11-05 15:01:03 +01:00
.gitignore Remove jar from source repo (#340) 2023-05-24 23:10:06 +01:00
.jvmopts-ci chore: Enable netty leak detector in CI (#1639) 2024-12-29 02:23:05 +08:00
.sbt-java-formatter.conf with Java 17 min - we can call Thread.onSpinWait directly (#2021) 2025-08-08 08:57:52 +01:00
.sbtopts chore: bump javafmt to 0.10.0 (#2081) 2025-08-25 19:32:35 +08:00
.scala-steward.conf Pin sbt-assembly version to 2.2 (#2122) 2025-08-31 14:26:51 +01:00
.scalafix.conf chore: Update import group in scalafix.conf 2024-01-16 16:10:53 +08:00
.scalafmt.conf chore: bump scalafmt to 3.9.9 (#2047) 2025-08-23 17:34:23 +08:00
build.sbt Add OSGi headers to pekko-pki (#2107) 2025-08-30 13:32:26 +01:00
CHANGELOG.md Pekko becomes TLP (#1214) 2024-03-22 14:16:08 +01:00
CONTRIBUTING.md chore: Update the readme for Java 17 (#2098) 2025-08-27 16:58:49 +08:00
COPYING.protobuf =all #13783 replace protobuf dependency by embedded version 2015-09-04 09:06:50 +02:00
KEYS KEYS: add second public key for Arnout Engelen (#1472) 2024-09-10 00:06:26 +02:00
LICENSE use better byte buffer cleaner (#2020) 2025-08-13 20:04:00 +01:00
NOTICE add 2025 to copyright (#1651) 2024-12-31 12:53:07 +01:00
README.md chore: Update the readme for Java 17 (#2098) 2025-08-27 16:58:49 +08:00

Apache Pekko

Nightly Builds Nightly Aeron Tests OpenSSF Best Practices

Apache Pekko is an open-source framework for building applications that are concurrent, distributed, resilient and elastic. Pekko uses the Actor Model to provide more intuitive high-level abstractions for concurrency. Using these abstractions, Pekko also provides libraries for persistence, streams, HTTP, and more.

Pekko is a fork of Akka 2.6.x, prior to the Akka project's adoption of the Business Source License.

Reference Documentation

See https://pekko.apache.org for the documentation including the API docs. The docs for all the Apache Pekko modules can be found there.

Building from Source

The CI build is Linux based (Ubuntu) and most Pekko developers use Macs or Linux machines. There have been reports of issues when building with Windows (#829).

Using IntelliJ IDEA

To use IntelliJ IDEA, you need to configure your project to use JDK 8. For a visual guide, refer to this Q&A.

  • File > Project Structure > Project Settings > Project > Set your JDK to version 17
  • Settings > ... > Scala Compiler Server > Set your JDK to version 17
  • Settings > ... > sbt > Set your JRE to version 17

Prerequisites

  • Make sure you have installed a Java Development Kit (JDK) version 17 or later.
  • Make sure you have sbt installed and using this JDK.
  • Graphviz is needed for the scaladoc generation build task, which is part of the release.

Running the Build

  • Open a command window and change directory to your preferred base directory
  • Use git to clone the repo or download a source release from https://pekko.apache.org (and unzip or untar it, as appropriate)
  • Change directory to the directory where you installed the source (you should have a file called build.sbt in this directory)
  • sbt compile compiles the main source for project default version of Scala (2.13)
    • sbt +compile will compile for all supported versions of Scala
  • sbt test will compile the code and run the unit tests
  • sbt testQuick similar to test but when repeated in shell mode will only run failing tests
  • sbt testQuickUntilPassed similar to testQuick but will loop until tests pass.
  • sbt package will build the jars
    • the jars will be built into target dirs of the various modules
    • for the 'actor' module, the jar will be built to actor/target/scala-2.13/
  • sbt publishLocal will push the jars to your local Apache Ivy repository
  • sbt publishM2 will push the jars to your local Apache Maven repository
  • sbt docs/paradox will build the docs (the ones describing the module features)
    • Requires Java 11 minimum
    • sbt docs/paradoxBrowse does the same but will open the docs in your browser when complete
    • the index.html file will appear in target/paradox/site/main/
  • sbt unidoc will build the Javadocs for all the modules and load them to one place (may require Graphviz, see Prerequisites above)
    • the index.html file will appear in target/scala-2.13/unidoc/
  • sbt sourceDistGenerate will generate source release to target/dist/
  • The version number that appears in filenames and docs is derived, by default. The derived version contains the most git commit id or the date/time (if the directory is not under git control).
    • You can set the version number explicitly when running sbt commands
      • eg sbt "set ThisBuild / version := \"1.0.0\"; sourceDistGenerate"
    • Or you can add a file called version.sbt to the same directory that has the build.sbt containing something like
      • ThisBuild / version := "1.0.0"

Community

There are several ways to interact with the Pekko community:

  • GitHub discussions: for questions and general discussion.
  • Pekko dev mailing list: for Pekko development discussions.
  • Pekko users mailing list: for Pekko user discussions.
  • GitHub issues: for bug reports and feature requests. Please search the existing issues before creating new ones. If you are unsure whether you have found a bug, consider asking in GitHub discussions or the mailing list first.

Contributing

Contributions are very welcome. If you have an idea on how to improve Pekko, don't hesitate to create an issue or submit a pull request.

See CONTRIBUTING.md for details on the development workflow and how to create your pull request.

Code of Conduct

Apache Pekko is governed by the Apache code of conduct. By participating in this project you agree to abide by its terms.

License

Apache Pekko is available under the Apache License, version 2.0. See LICENSE file for details.