No description
Find a file
Andy(Jingzhang)Chen c9fdad1dd1
add unit test protect ExtractEntityId can be shared safely (#1475)
* add unit test protect ExtractEntityId can be shared safely

Related with #1463

* chore: avoid the double evaluation of entityId in ClusterSharding (#1304)

* chore: avoid the double evaluation of entityId in ClusterSharding

* new cacheable partial function

* optimized for review

* fix the right type

* Revert "chore: avoid the double evaluation of entityId in ClusterSharding (#1…" (#1464)

This reverts commit b0e9886439.

* grammar fix

* sort imports

---------

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
2024-09-12 12:55:42 +01:00
.github publish 1.0.3 docs (#1462) 2024-09-04 10:45:13 +01:00
actor/src/main additional mailbox selector for typed props (#1096) 2024-08-28 19:12:35 +01:00
actor-testkit-typed/src fix: flaky logging mdc tests (#1410) 2024-07-24 20:46:19 +08:00
actor-tests/src/test Add test for virtual thread support (#1436) 2024-08-14 18:59:42 +01:00
actor-typed/src/main additional mailbox selector for typed props (#1096) 2024-08-28 19:12:35 +01:00
actor-typed-tests/src/test additional mailbox selector for typed props (#1096) 2024-08-28 19:12:35 +01:00
bench-jmh Avoid boxing in Framing (#1247) 2024-05-06 20:19:40 +01:00
cluster Reformat with scalafmt 3.8.2 2024-06-16 07:56:40 +01:00
cluster-metrics/src Reformat with scalafmt 3.8.2 2024-06-16 07:56:40 +01:00
cluster-sharding/src add unit test protect ExtractEntityId can be shared safely (#1475) 2024-09-12 12:55:42 +01:00
cluster-sharding-typed/src Revert "chore: avoid the double evaluation of entityId in ClusterSharding (#1…" (#1464) 2024-09-07 21:57:02 +01:00
cluster-tools/src Protobuf 3.23.4 (#1103) 2024-02-07 14:32:56 +01:00
cluster-typed/src fix: flaky logging mdc tests (#1410) 2024-07-24 20:46:19 +08:00
coordination/src adjust ASF header (#450) 2023-06-22 14:19:26 +01:00
discovery/src Fix invalid scaladoc links which cannot be found (#353) 2023-09-26 19:26:45 +08:00
distributed-data/src Protobuf 3.23.4 (#1103) 2024-02-07 14:32:56 +01:00
docs/src docs: logger names are Fully Qualified Class Names (#1476) 2024-09-12 11:51:12 +01:00
kubernetes Try running Aeron tests again (#31172) 2022-02-22 12:56:29 +01:00
legal Pekko becomes TLP (#1214) 2024-03-22 14:16:08 +01:00
multi-node-testkit/src/main Fix some non-standard comments (#939) 2024-01-14 12:47:51 +01:00
osgi/src chore: Update Scala to 2.13.13 (#1155) 2024-02-28 12:53:22 +08:00
persistence/src Add new migration strategy for Pekko Persistence snapshots (#1423) 2024-08-21 11:58:16 +01:00
persistence-query/src Fix invalid scaladoc links which cannot be found (#353) 2023-09-26 19:26:45 +08:00
persistence-shared/src/test/scala/org/apache/pekko/persistence adjust ASF header (#450) 2023-06-22 14:19:26 +01:00
persistence-tck/src adjust ASF header (#450) 2023-06-22 14:19:26 +01:00
persistence-testkit/src Reformat with scalafmt 3.8.2 2024-06-16 07:56:40 +01:00
persistence-typed/src new durable state persistence exceptions (#1271) 2024-04-22 21:17:10 +02:00
persistence-typed-tests/src/test adjust ASF header (#450) 2023-06-22 14:19:26 +01:00
pki/src use more of StandardCharsets (#952) 2024-01-14 23:50:50 +01:00
plugins/serialversion-remover-plugin/src/main adjust ASF header (#450) 2023-06-22 14:19:26 +01:00
project Update scala-library to 2.12.20 (#1466) 2024-09-07 23:18:41 +01:00
remote/src Reformat with scalafmt 3.8.2 2024-06-16 07:56:40 +01:00
remote-tests/src forward fit Akka compat changes (#1211) 2024-03-22 10:23:09 +01:00
scripts Simplify link validator config (#1381) 2024-07-02 11:46:18 +02:00
serialization-jackson/src fix link in reference.conf (#1320) 2024-05-07 19:04:03 +01:00
slf4j/src use more of StandardCharsets (#952) 2024-01-14 23:50:50 +01:00
stream/src/main Fix typos in optionalVia/unsafeOptionalVia 2024-08-30 12:37:40 +02:00
stream-testkit/src chore: Fix expectNextWithTimeoutPF (#1218) 2024-03-23 19:39:04 +08:00
stream-tests/src/test Add wiretap/wiretapContext to FlowWithContext/SourceWithContext 2024-08-27 11:44:08 +02:00
stream-tests-tck/src/test feat: Add flatten operator. 2024-01-14 20:24:06 +08:00
stream-typed/src Fix invalid scaladoc links which cannot be found (#353) 2023-09-26 19:26:45 +08:00
stream-typed-tests/src/test/scala/org/apache/pekko/stream =str Tweak the stream mapAsyncPartitioned operator 2023-10-10 02:34:54 +08:00
testkit/src use more of StandardCharsets (#952) 2024-01-14 23:50:50 +01:00
.asf.yaml notify CI failures (#1337) 2024-05-23 00:35:41 +01:00
.git-blame-ignore-revs Add 'Reformat with scalafmt 3.8.2' to .git-blame-ignore-revs 2024-06-16 07:56:40 +01: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 provide more memory to sbt jobs (#1176) 2024-03-04 20:33:10 +01:00
.sbt-java-formatter.conf chore: Update java-formatter ignore lists (#1030) 2024-01-23 22:20:01 +08:00
.sbtopts Update .sbtopts to match mem in .jvmopts-ci (#1290) 2024-04-25 07:17:43 +08:00
.scala-steward.conf chore: pin aeron version (#1451) 2024-08-25 23:17:39 +02:00
.scalafix.conf chore: Update import group in scalafix.conf 2024-01-16 16:10:53 +08:00
.scalafmt.conf Update scalafmt-core to 3.8.3 (#1416) 2024-07-28 14:51:56 +08:00
build.sbt Add test for virtual thread support (#1436) 2024-08-14 18:59:42 +01:00
CHANGELOG.md Pekko becomes TLP (#1214) 2024-03-22 14:16:08 +01:00
CONTRIBUTING.md Pekko becomes TLP (#1214) 2024-03-22 14:16:08 +01:00
COPYING.protobuf
KEYS KEYS: add second public key for Arnout Engelen (#1472) 2024-09-10 00:06:26 +02:00
LICENSE Pekko becomes TLP (#1214) 2024-03-22 14:16:08 +01:00
NOTICE Pekko becomes TLP (#1214) 2024-03-22 14:16:08 +01:00
README.md chore: add OpenSSF Best Practices badge (#1362) 2024-06-15 18:58:13 +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).

Prerequisites

  • Make sure you have installed a Java Development Kit (JDK) version 11 or later.
  • Make sure you have sbt installed and using this JDK.
  • Make sure you also have Java 8 installed (JDK or JRE).
  • 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.