Coder Social home page Coder Social logo

zvrablik / evitadb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fgforrest/evitadb

0.0 0.0 0.0 8.62 MB

evitaDB is a specialized database with an easy-to-use API for e-commerce systems. It is a low-latency NoSQL in-memory engine that handles all the complex tasks that e-commerce systems have to deal with on a daily basis. evitaDB is expected to act as a fast secondary lookup/search index used by front stores.

License: Other

Shell 0.03% Java 99.86% ANTLR 0.10% Dockerfile 0.01%

evitadb's Introduction


evitaDB

Visit evitadb.io for the full documentation, examples and guides.

       

         

evitaDB is a specialized database with easy-to-use API for e-commerce systems. It is a low-latency NoSQL in-memory engine that handles all the complex tasks that e-commerce systems have to deal with on a daily basis. evitaDB is expected to act as a fast secondary lookup/search index used by front stores.

We aim for an order of magnitude better latency (10x faster or better) for common e-commerce tasks than other SQL or NoSQL database solutions on the same hardware specification. evitaDB should not be used for storing and processing primary data.

Why should you consider using evitaDB instead of Elasticsearch, MongoDB or relational database?

  • evitaDB is a database specialized for e-commerce tasks and has everything you need to implement an e-commerce catalog

  • evitaDB is more performant than Elasticsearch or PostgreSQL on the same HW sizing in typical e-commerce scenarios

  • evitaDB has a ready to use API from the day one:

    • GraphQL - targets rich JavaScript front-ends
    • REST - targets server side applications
    • gRPC - targets fast inter-server communication used in microservices architecture and is used for the evitaDB client drivers

What's current status of evitaDB?

evitaDB is currently under active development. evitaDB is supported by the company FG Forrest, which specializes in the development of e-commerce stores for large clients in the Czech Republic and abroad. evitaDB concepts have been proven to work well in production systems with annual sales exceeding 50 million €.

Engineers from FG Forrest cooperate with academic team from University of Hradec Králové, so our statements about evitaDB performance are backed by thorough (and unbiased) testing and research. All proofs can be found in this repository, and you can run tests on your HW to verify our conclusions.

What's the license of the evitaDB

evitaDB is licensed under the Business Source License 1.1. Technically, it is not an open source license, but is an open source friendly license, because it automatically converts to one after a period of time specified in the license.

We're fans of open source, and we've benefited a lot from open source software (even the database engine uses some of it). The database implementation has taken thousands of man-days and, if successful, will take several thousand more. We were lucky to get an EU grant that partially funded the initial implementation, but we need to build a self-sustaining project in the long run. Our company uses evitaDB for its own commercial projects, so the development of the database is guaranteed, but without additional income the development would be limited. That's why we have chosen this type of license, but in the end we allow you - our users - almost any use.

In a nutshell:

  • the BSL license covers a period of 4 years from the date of the software release
  • 4 year old version of evitaDB becomes permissive Apache License, v.2
  • both BSL and Apache licenses allow you to use evitaDB for OSS and/or commercial projects free of charge
  • there is one exception - you may not offer and sell evitaDB as a service to third parties

That's it.

Read license FAQ

Prerequisities

evitaDB requires and is tested on OpenJDK 17.

Java applications support multiple platforms depending on the JRE/JDK vendor. All major hardware architectures (x86_64, ARM64) and operating systems (Linux, MacOS, Windows) are supported. Due to the size of our team, we regularly test evitaDB only on the Linux AMD64 platform (which you can also use on Windows thanks to the Windows Linux Subsystem). The performance can be worse, and you may experience minor problems when running evitaDB on other (non-Linux) environments. Please report any bugs you might encounter, and we'll try to fix them as soon as possible.

How this repository is organized

  • docs: research documents, documentation, specifications
  • evita_api: set of all supported data types in evitaDB, conversions to & from other types, common data structures, basic exception hierarchy
  • evita_db: Maven POM allowing to link all necessary libraries for embedded evitaDB usage scenario
  • evita_engine: implementation of the database engine
  • evita_external_api: web API implementation
    • evita_external_api_core: shared logic for all web APIs, Undertow web server integration, annotation framework for APIs
    • evita_external_api_graphql: implementation of GraphQL API
    • evita_external_api_grpc: implementation of gRPC API
      • client: Java driver for client/server usage scenario
      • server: gRPC server
      • shared: shared classes between client & server (generated gRPC stubs)
    • evita_external_api_rest: implementation of REST API
  • evita_functional_tests: test suite verifying functional correctness of standard and edge cases of the API on a small amount of data, this library also contains unit tests for evita_db
  • evita_performance_tests: test suite executing most common operations on real world data that generates performance statistics of each implementation
  • evita_query: query language, query parser, utilities for query handling
  • evita_store: binary serialization using Kryo library, persistent key/value datastore implementation
  • evita_test_support: utility classes that make writing integration tests with evitaDB easier
  • jacoco: Maven POM that allows to aggregate test coverage for entire project
  • workaround:
    • grpc: workaround shaded build allowing to link gRPC libraries as a single "automatic Java module", direct linking of original libraries leads to problems with Java module system
    • roaringBitmap: workaround shaded build allowing to link RoaringBitmap libraries as a single "automatic Java module", direct linking of original libraries leads to problems with Java module system

Quality requirements for the code

In order code to be accepted it will fulfill following criteria:

  • line coverage with unit tests will be >= 70%
  • all classes and methods will have comprehensible JavaDoc
  • there will be no TODO statements in the code
  • there will be no commented out code

Icons sourced at Icons8.com

evitadb's People

Contributors

lukashornych avatar novoj 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.