Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] MessagePack #1325

Open
AleksandarEri opened this issue Feb 14, 2025 · 2 comments
Open

[Feature Request] MessagePack #1325

AleksandarEri opened this issue Feb 14, 2025 · 2 comments

Comments

@AleksandarEri
Copy link

Is it possible to integrate within runtime a https://github.com/vmihailenco/msgpack
Currently i have integrate message pack lua way but in lua when used takes about 300mb so it is not very useful

Lua one can be found here https://github.com/AleksandarEri/nakama-lua-msgpack

Copy link

linear bot commented Feb 14, 2025

@novabyte
Copy link
Member

@AleksandarEri It's possible to use whichever binary serialization format you like with Nakama. It could be MessagePack, FlatBuffers, Protocol Buffers, or others. We tend to use Protobuf because parts of Nakama itself uses it internally; you can see an example of a Protobuf definition of ours which is open-source here:

https://github.com/heroiclabs/hiro/blob/main/hiro.proto

No matter which serialization format you choose to use I think the easiest way to integrate is to use the Go server framework support in Nakama. This lets you pull the library in directly as a Go package - whereas the other server runtimes we support would need to parse the descriptor at runtime for the format and expose encode/decode functions. We're happy to review the contribution if you're interested to write the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants