ezyfox-server
ezyfox-server copied to clipboard
A socket server (include SSL) supports realtime application, realtime game, MMORPG, messaging, chat and streaming data with TCP, UDP and Websocket
ezyfox-server 
- Features
- Benchmark
- Introduction
- Get started
- Documentation
- Latest Version
- Code Example
- Client SDKs
- Demos
- Tutorials
- Tests
- Contact us
Features
- Core container & dependency injection: bean manipulation, auto binding, auto implementation, etc.
- Multiple Communication Protocols: supports TCP, UDP, WebSocket, HTTP.
- Traffic Encryption: traffic between clients and servers can be encrypted using SSL.
- Multiple Client SDKs: Android, IOS, Unity, React, C++, Flutter, ...
Benchmark
Ezyfox Server's benchmark with 1000 CCU broadcast messages in 1 hour on one VPS ram 512MB, CPU 1 core. You can watch this video to see how did we test.

Introduction
To rapidly develop online games, developers often have to use a game server engine like SmartFoxServer or Photon, but unfortunately, they come with really high price, especially when more and more users are engaging in our products. Therefore, we develop EzyFox ecosystem aiming to make everything free and open for everyone who are keen on building multi-players games and applications.
EzyFox ecosystem supports a wide range of most important components to develop an enterprise product including TCP, UDP, WebSocket protocols with SSL encryption, HTTP RESTful API, Remote procedure call RPC protocol, Database interaction, Memory caching, Message Queue.
With EzyFox ecosystem, we can stay away from the headache of choosing which technologies to use to manage and scale up an application, so we can just focus on implementing business logics.
Get Started
https://youngmonkeys.org/get-started/
Documentation
https://youngmonkeys.org/ezyfox-sever/
Latest version
You can download it here
Code Example
1. Create an app entry
public static class HelloAppEntry extends EzySimpleAppEntry {
@Override
protected String[] getScanablePackages() {
return new String[] {
"com.tvd12.ezyfoxserver.embedded.test" // replace by your package
};
}
}
2. Create a plugin entry
public static class HelloPluginEntry extends EzySimplePluginEntry {
@Override
protected String[] getScanablePackages() {
return new String[] {
"com.tvd12.ezyfoxserver.embedded.test" // replace by your package
};
}
}
3. Setup
EzyPluginSettingBuilder pluginSettingBuilder = new EzyPluginSettingBuilder()
.name("hello")
.addListenEvent(EzyEventType.USER_LOGIN)
.entryLoader(HelloPluginEntryLoader.class);
EzyAppSettingBuilder appSettingBuilder = new EzyAppSettingBuilder()
.name("hello")
.entryLoader(HelloAppEntryLoader.class);
EzyZoneSettingBuilder zoneSettingBuilder = new EzyZoneSettingBuilder()
.name("hello")
.application(appSettingBuilder.build())
.plugin(pluginSettingBuilder.build());
EzySimpleSettings settings = new EzySettingsBuilder()
.zone(zoneSettingBuilder.build())
.build();
4. Create and start a server
EzyEmbeddedServer server = EzyEmbeddedServer.builder()
.settings(settings)
.build();
server.start();
You can find full example here
Client SDKs
Demos
- Free Chat
- Space Game Cocos2d-x
- Space Shooter Unity
- Lucky Wheel Phaser HTML5
- One Two Three Simple Game Server
- Easy Smashers Unity
Tutorials:
- EzyChat: A simple realtime chat application
- EzyRoulette: A simple lucky wheel game
Tests
Navigate to the source folder and run:
mvn test
Contact us
- Touch us on Facebook
- Ask us on stackask.com
- Email to me Dzung
Help us by donation
Currently, our operating budget is fully from on our own salaries, and all product developments are still based on voluntary contributions from a few organization members. Apparently, the low budget would cause many considerable difficulties for us. Therefore, with a clear roadmap and an ambitious goal to provide intellectual products for the community, we really appreciate your support if you can provide a donation to take us further steps. Thanks in advance for your meaningful contributions!
https://youngmonkeys.org/donate/
License
- Apache License, Version 2.0