real-logic/simple-binary-encoding
Fork: 521 Star: 3108 (更新于 2024-10-20 00:21:08)
license: Apache-2.0
Language: Java .
Simple Binary Encoding (SBE) - High Performance Message Codec
最后发布版本: 1.33.0-v2 ( 2024-08-24 07:08:52)
Simple Binary Encoding (SBE)
SBE is an OSI layer 6 presentation for encoding and decoding binary application messages for low-latency financial applications. This repository contains the reference implementations in Java, C++, Golang, C#, and Rust.
More details on the design and usage of SBE can be found on the Wiki.
An XSD for SBE specs can be found here. Please address questions about the specification to the SBE FIX community.
For the latest version information and changes see the Change Log with downloads at Maven Central.
The Java and C++ SBE implementations work very efficiently with the Aeron messaging system for low-latency and high-throughput communications. The Java SBE implementation has a dependency on Agrona for its buffer implementations. Commercial support is available from sales@real-logic.co.uk.
Binaries
Binaries and dependency information for Maven, Ivy, Gradle, and others can be found at http://search.maven.org.
Example for Maven:
<dependency>
<groupId>uk.co.real-logic</groupId>
<artifactId>sbe-all</artifactId>
<version>${sbe.tool.version}</version>
</dependency>
Build
Build the project with Gradle using this build.gradle file.
Full clean build:
$ ./gradlew
Run the Java examples
$ ./gradlew runJavaExamples
Distribution
Jars for the executable, source, and javadoc for the various modules can be found in the following directories:
sbe-benchmarks/build/libs
sbe-samples/build/libs
sbe-tool/build/libs
sbe-all/build/libs
An example to execute a Jar from command line using the 'all' jar which includes the Agrona dependency:
java -Dsbe.generate.ir=true -Dsbe.target.language=Cpp -Dsbe.target.namespace=sbe -Dsbe.output.dir=include/gen -Dsbe.errorLog=yes -jar sbe-all/build/libs/sbe-all-${SBE_TOOL_VERSION}.jar my-sbe-messages.xml
C++ Build using CMake
NOTE: Linux, Mac OS, and Windows only for the moment. See FAQ. Windows builds have been tested with Visual Studio Express 12.
For convenience, the cppbuild
script does a full clean, build, and test of all targets as a Release build.
$ ./cppbuild/cppbuild
If you are comfortable using CMake, then a full clean, build, and test looks like:
$ mkdir -p cppbuild/Debug
$ cd cppbuild/Debug
$ cmake ../..
$ cmake --build . --clean-first
$ ctest
Note: The C++ build includes the C generator. Currently, the C generator is a work in progress.
Golang Build
First build using Gradle to generate the SBE jar and then use it to generate the golang code for testing.
$ ./gradlew
$ ./gradlew generateGolangCodecs
For convenience on Linux, a gnu Makefile is provided that runs some tests and contains some examples.
$ cd gocode
# make # test, examples, bench
Users of golang generated code should see the user documentation.
Developers wishing to enhance the golang generator should see the developer documentation
C# Build
Users of CSharp generated code should see the user documentation.
Developers wishing to enhance the CSharp generator should see the developer documentation
Rust Build
The SBE Rust generator will produce 100% safe rust crates (no unsafe
code will be generated). Generated crates do
not have any dependencies on any libraries (including no SBE libraries). If you don't yet have Rust installed
see Rust: Getting Started
Generate the Rust codecs
$ ./gradlew generateRustCodecs
Run the Rust test from Gradle
$ ./gradlew runRustTests
Or run test directly with Cargo
$ cd rust
$ cargo test
License (See LICENSE file for full license)
Copyright 2013-2024 Real Logic Limited.
Copyright 2017 MarketFactory Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
最近版本更新:(数据更新于 2024-09-20 09:09:54)
2024-08-24 07:08:52 1.33.0-v2
2024-08-23 17:09:45 1.32.2
2024-08-05 21:13:48 1.32.1
2024-08-03 03:03:42 1.32.0
2024-04-12 06:01:51 1.31.1
2024-04-03 23:17:25 1.31.0
2023-12-06 23:16:46 1.30.0
2023-07-21 23:49:49 1.29.0
2023-06-09 00:00:12 1.28.3
2023-04-17 16:45:14 1.28.2
主题(topics):
c-plus-plus, codec, encoder-decoder, golang, java
real-logic/simple-binary-encoding同语言 Java最近更新仓库
2024-11-05 04:13:47 Stirling-Tools/Stirling-PDF
2024-11-04 20:43:19 xiaojieonly/Ehviewer_CN_SXJ
2024-11-03 00:43:09 PBH-BTN/PeerBanHelper
2024-10-31 18:52:00 CodePhiliaX/Chat2DB
2024-10-31 11:19:43 mybatis-flex/mybatis-flex
2024-10-31 04:35:56 kestra-io/kestra