Coder Social home page Coder Social logo

ducquynhnguyeninfo / ezyfox-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from youngmonkeys/ezyfox-server

0.0 0.0 0.0 4.85 MB

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

Shell 0.01% Java 99.19% Groovy 0.05% HTML 0.75% Batchfile 0.01%

ezyfox-server's Introduction

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

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

Help us by making a 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

ezyfox-server's People

Contributors

tvd12 avatar vu-luong avatar sonph95 avatar changxdevelop avatar boushphong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.