Skip to content

Latest commit

 

History

History
78 lines (68 loc) · 6.98 KB

ChangeLog.md

File metadata and controls

78 lines (68 loc) · 6.98 KB

Changelog

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.Saga also 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.Direct and Process.DirectWithTimeout to make direct request to the actor (gen.Server or inherited object). If an actor has no implementation of HandleDirect callback it returns ErrUnsupportedRequest as a error.
  • Introduced new callback HandleDirect in the gen.Server interface as a handler for requests made by Process.Direct or Process.DirectWithTimeout. It should be easy to interact with actors from outside.
  • Introduced new types intended to be used to interact with Erlang/Elixir
    • etf.ListImproper to 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 is binary() type)
    • etf.Charlist (an alias for the Golang string) encodes as a list of chars []rune in order to support Erlang string type (which is charlist() type)
  • Introduced new methods Node.ProvideRemoteSpawn, Node.RevokeRemoteSpawn, Process.RemoteSpawn.
  • Introduced new interfaces Marshaler (method MarshalETF) and Unmarshaler (method UnmarshalETF) 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 TLSmode in ergo.NodeOptions with the following values:
    • ergo.TLSmodeDisabled default value. encryption is disabled
    • ergo.TLSmodeAuto enables encryption with autogenerated and self-signed certificate
    • ergo.TLSmodeStrict enables encryption with specified server/client certificates and keys there is example of usage examples/nodetls/tlsGenServer.go
  • Introduced GenStage behavior implementation (originated from Elixir world). GenStage is an abstraction built on top of GenServer to 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 here examples/genstage or just run it go run ./examples/genstage to see it in action
  • Introduced new methods AddStaticRoute/RemoveStaticRoute for Node. This feature allows you to keep EPMD service behind a firewall.
  • Introduced SetTrapExit/TrapExit methods for Process in order to control the trapping gen.MessageExit message (for the linked processes)
  • Introduced TermMapIntoStruct and TermProplistIntoStruct functions. It should be easy now to transform etf.Map or []eft.ProplistElement into the given struct. See documentation for the details.
  • Improved DIST implementation in order to support KeepAlive messages and get rid of platform-dependent syscall usage
  • Fixed TermIntoStruct function. There was a problem with Tuple value transforming into the given struct
  • Fixed incorrect decoding atoms true, false into 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

There is a bunch of changes we deliver with this release

  • We have changed the name - Ergo (or Ergo Framework). GitHub's repo has been renamed as well. We also created cloned repo ergonode to 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.