All notable changes to this project will be documented in this file.
This format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
v2.0.0 2021-10-12 [tag version v1.999.200]
- Added support of Erlang/OTP 24 (including Alias feature and Remote Spawn introduced in Erlang/OTP 23)
- Important: This release includes refined API (without backward compatibility) for a more convenient way to create OTP-designed microservices. Make sure to update your code.
- Important: Project repository has been moved to https://github.com/ergo-services/ergo. It is still available on the old URL https://github.com/halturin/ergo and GitHub will redirect all requests to the new one (thanks to GitHub for this feature).
- Introduced new behavior
gen.Saga. It implements Saga design pattern - a sequence of transactions that updates each service state and publishes the result (or cancels the transaction or triggers the next transaction step).gen.Sagaalso provides a feature of interim results (can be used as transaction progress or as a part of pipeline processing), time deadline (to limit transaction lifespan), two-phase commit (to make distributed transaction atomic). Here is example examples/gensaga. - Introduced new methods
Process.DirectandProcess.DirectWithTimeoutto make direct request to the actor (gen.Serveror inherited object). If an actor has no implementation ofHandleDirectcallback it returnsErrUnsupportedRequestas a error. - Introduced new callback
HandleDirectin thegen.Serverinterface as a handler for requests made byProcess.DirectorProcess.DirectWithTimeout. It should be easy to interact with actors from outside. - Introduced new types intended to be used to interact with Erlang/Elixir
etf.ListImproperto support improper lists like[a|b](a cons cell).etf.String(an alias for the Golang string) encodes as a binary in order to support Elixir string type (which isbinary()type)etf.Charlist(an alias for the Golang string) encodes as a list of chars[]runein order to support Erlang string type (which ischarlist()type)
- Introduced new methods
Node.ProvideRemoteSpawn,Node.RevokeRemoteSpawn,Process.RemoteSpawn. - Introduced new interfaces
Marshaler(methodMarshalETF) andUnmarshaler(methodUnmarshalETF) for the custom encoding/decoding data. - Improved performance for the local messaging (up to 3 times for some cases)
- Added example examples/http to demonsrate how HTTP server can be integrated into the Ergo node.
- Added example examples/gendemo - how to create a custom behavior (design pattern) on top of the
gen.Server. Take inspiration from the gen/stage.go or gen/saga.go design patterns. - Added support FreeBSD, OpenBSD, NetBSD, DragonFly.
- Fixed RPC issue #45
- Fixed internal timer issue #48
- Fixed memory leaks #53
- Fixed double panic issue #52
- Fixed Atom Cache race conditioned issue #54
- Fixed ETF encoder issues #64 #66
1.2.0 - 2021-04-07
- Added TLS support. Introduced new option
TLSmodeinergo.NodeOptionswith the following values:ergo.TLSmodeDisableddefault value. encryption is disabledergo.TLSmodeAutoenables encryption with autogenerated and self-signed certificateergo.TLSmodeStrictenables encryption with specified server/client certificates and keys there is example of usageexamples/nodetls/tlsGenServer.go
- Introduced GenStage behavior implementation (originated from Elixir world).
GenStageis an abstraction built on top ofGenServerto provide a simple way to create a distributed Producer/Consumer architecture, while automatically managing the concept of backpressure. This implementation is fully compatible with Elixir's GenStage. Example hereexamples/genstageor just run itgo run ./examples/genstageto see it in action - Introduced new methods
AddStaticRoute/RemoveStaticRouteforNode. This feature allows you to keep EPMD service behind a firewall. - Introduced
SetTrapExit/TrapExitmethods forProcessin order to control the trappinggen.MessageExitmessage (for the linked processes) - Introduced
TermMapIntoStructandTermProplistIntoStructfunctions. It should be easy now to transformetf.Mapor[]eft.ProplistElementinto the given struct. See documentation for the details. - Improved DIST implementation in order to support KeepAlive messages and get rid of platform-dependent
syscallusage - Fixed
TermIntoStructfunction. There was a problem withTuplevalue transforming into the given struct - Fixed incorrect decoding atoms
true,falseinto the booleans - Fixed race condition and freeze of connection serving in corner case #21
- Fixed problem with monitoring process by the registered name (local and remote)
- Fixed issue with termination linked processes
- Fixed platform-dependent issues. Now Ergo Framework has tested and confirmed support of Linux, MacOS, Windows.
1.1.0 - 2020-04-23
- Fragmentation support (which was introduced in Erlang/OTP 22)
- Completely rewritten network subsystem (DIST/ETF).
- Improved performance in terms of network messaging (outperforms original Erlang/OTP up to x5 times. See Benchmarks)
1.0.0 - 2020-03-03
- We have changed the name - Ergo (or Ergo Framework). GitHub's repo has been
renamed as well. We also created cloned repo
ergonodeto support users of the old version of this project. So, its still available at https://github.com/halturin/ergonode. But it's strongly recommend to use the new one. - Completely reworked (almost from scratch) architecture whole project
- Implemented linking process feature (in order to support Application/Supervisor behaviors)
- Reworked Monitor-feature. Now it has full-featured support with remote process/nodes
- Added multinode support
- Added experimental observer support
- Fixed incorrect ETF string encoding
- Improved ETF TermIntoStruct decoder
- Improved code structure and readability
0.2.0 - 2019-02-23
- Now we make versioning releases
- Improve node creation. Now you can specify the listening port range. See 'Usage' for details
- Add embedded EPMD. Trying to start internal epmd service on starting ergonode.