Giter Site home page Giter Site logo

memorized's Introduction

Memorized


๐Ÿ—๏ธ This project is still in development.

This project is still in development, it is not yet possible to use it. The project is subject to significant change in the future.

๐Ÿ“ Summary

โ“ Goal of Memorized server

Memorized is a standalone cache server written in Java. Its goal is to create a really lightweight and efficient cache server with high flexibility. This project does not use a library to manage connections between server and client, but instead uses a NIO server.

๐Ÿ” When to use?

This is not a cache server that can be used in all cases. The aim is to provide a cache server that is flexible enough to automate certain actions and best meet sometimes complex system requirements. Typically, actions are triggered when an element is modified. Some important aspects of this project are:

  • Great flexibility, making it easy to add your own elements to suit your needs.
  • Maintain maximum consistency between clients.
  • Be able to perform atomic operations on any object.
  • Have the smallest possible memory and CPU footprint.
  • Keep access to the project open so that anyone can use it.
  • Easy and lightweight implementation on native applications and all types of environments (mainly Java).

โœจ Features

Here is a list of current features:

  • Custom authentication
  • Customizable codec system
  • Multithreaded client connection management
  • Distributed collections
  • Custom distributed objects
  • And many more!

๐Ÿ› ๏ธ How to use?

This section is not available yet. It will be divided into several sections in the Wiki tab.

โœ๏ธ Examples

See full examples here.

Start a Memorized client

public class MyClient {

    public static void main(final String[] args) {
        final MemorizedClient client =
                new MemorizedClientBuilder().serverAddress(new InetSocketAddress("127.0.0.1", 12345))
                        .authenticationInput(new UnsecureAuthenticationInput())
                        .codecRegistry(new DefaultCodecRegistry().registerDefaults())
                        .keyRegistry(new ClassKeyRegistry())
                        .build();
        client.start();
    }

}

Start a Memorized server

public class MyServer {

    public static void main(final String[] args) {
        final MemorizedServer server = new MemorizedServerBuilder().address(new InetSocketAddress("127.0.0.1", 12345))
                .workerThreads(1)
                .authenticator(new UnsecureAuthenticator())
                .codecRegistry(new DefaultCodecRegistry().registerDefaults())
                .dataRepositoryCoordinator(new DataRepositoryCoordinator())
                .build();
        server.start();
    }

}

โš™๏ธ Requirements

  • Java 17 or higher

memorized's People

Contributors

yvanmazy avatar

Stargazers

 avatar  avatar

Watchers

 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.