EdwardNgo / ezyfox-server

A socket server (include SSL) supports realtime application, realtime game, MMORPG, messaging, chat and streaming data with TCP, UDP and Websocket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ezyfox-server

Required

  • Java version: 1.8

Features

  • Core Container & Dependency Injection: Includes bean manipulation, auto-binding, auto-implementation, and more.
  • Multiple Communication Protocols: Supports TCP, UDP, WebSocket, and HTTP.
  • Traffic Encryption: Allows for traffic between clients and servers to be encrypted using SSL.
  • Multiple Client SDKs: Includes Android, iOS, Unity, React, C++, Flutter, and more.

Benchmark

Ezyfox Server's benchmark involved broadcasting messages to 1000 concurrent users in one hour on a VPS with 512MB of RAM and 1 CPU core. You can watch this video to see how we conducted the test.

Introduction

An Open Solution for all your Real-Time needs.

To develop online games rapidly, developers often need to use a game server engine like SmartFoxServer or Photon. Unfortunately, these engines come with a high price tag, especially as more and more users engage with our products. That's why we developed the EzyFox ecosystem, which aims to be free and open for anyone interested in building multiplayer games and applications.

The EzyFox ecosystem supports a wide range of essential components for enterprise product development, including TCP, UDP, WebSocket protocols with SSL encryption, HTTP RESTful API, Remote Procedure Call (RPC) protocol, Database Interaction, Memory Caching, and Message Queue.

With the EzyFox ecosystem, we can avoid the headache of choosing which technologies to use to manage and scale up an application, allowing us to focus solely on implementing business logic.

Getting 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 the full example here

Client SDKs

  1. Android
  2. C/C++
  3. CSharp
  4. Flutter
  5. Java
  6. Javascript ECMAScript 6
  7. Javascript
  8. Netty
  9. Swift
  10. React Native

Products

  1. Defi Warrior

Demos

  1. Free Chat
  2. Space Game Cocos2d-x
  3. Space Shooter Unity
  4. Lucky Wheel Phaser HTML5
  5. One Two Three Simple Game Server
  6. Easy Smashers Unity

Tutorials

  1. EzyChat: A simple realtime chat application
  2. EzyRoulette: A simple lucky wheel game

Tests

Navigate to the source folder and run:

mvn test

Contact Us

Support Us: Make a Meaningful Donation

Currently, our operating budget is fully supported by our own salaries, and all product development is still based on voluntary contributions from a few organization members. The low budget is causing significant difficulties for us. Therefore, with a clear roadmap and an ambitious goal to provide intellectual products for the community, we would greatly appreciate your support in the form of a donation to help us take further steps. Thank you in advance for your meaningful contributions!

https://youngmonkeys.org/donate/

License

  • Apache License, Version 2.0

About

A socket server (include SSL) supports realtime application, realtime game, MMORPG, messaging, chat and streaming data with TCP, UDP and Websocket

License:Apache License 2.0


Languages

Language:Java 99.2%Language:HTML 0.8%Language:Groovy 0.1%Language:Shell 0.0%Language:Batchfile 0.0%