You know that any developer would be happy to simplify his/her work. Of course, if this developer is not a crazy nerd. But we all nerds sometimes. However, if someone has done a piece of work to simplify our lives (like that awesome repos we presented this Friday in our JS digest), we’d be grateful and use represented solution. Like the next one called ‘FBE’. Fast Binary Encoding (FBE) allows describing any domain models…
Typical usage workflow looks like this:
- Creating a domain model using base types, enums, flags and structs
- Building a domain model library
- Serializing objects from the domain model in unified, fast and compact FastBinaryEncoding (FBE) format
- JSON converting objects from the domain model in order to use them in Web API
- Implementing Sender/Receiver interfaces to create a communication protocol
Fast Binary Encoding needs to be provided by a domain model. A domain model is a set of flags and structures that relate to each other. The next step is a domain model compilation using ‘fbec’ compiler which will create a generated code for the required programming language. If the domain model compiled with –json flag, then JSON serialization code will be generated in all domain objects. As a result, each domain object can be serialized into JSON format and vice versa.
Feel free to check how it works by yourself.
Since Ruby on Rails is not the fastest web framework out there you sometimes need to improve the performance in order to keep up. This post will list some great tips to improve Rails performance.