Giter Site home page Giter Site logo

bookstore-demo-performance's Introduction

MicroStream BookStore Performance Demo

BookStore Demo

With this demo the superior performance of MicroStream and the Java VM compared to JPA with a connected database is visualized. It is a Spring Boot application with a Vaadin frontend. Per default Postgres is used, but you can change the application's setup, to use any other database.

Setup

  • First you need to setup a Postgres database. Then the connection settings must be adjusted in the application.properties file accordingly.

  • Start the program via its main class: one.microstream.demo.bookstore.Application

  • At the first start a new MicroStream database is generated with random data. Depending on the setting bookstoredemo.initialDataAmount more or less data is produced.

  • Then the data has to be migrated to the connected JPA database

    • If bookstoredemo.jpaDataMigrationStrategy is batch_insert (default), the data will be automatically migrated.

    • If it is set to sql_file the generated data will be written into a SQL file, which must then be imported into the JPA database. It can be found in the configured data directory bookstoredemo.dataDir, default is [userhome]/microstream-bookstoredemo. Please note, that this is by far the faster way, but the generated inserts are optimized for Postgres and probably won't work with a different database.

Here you can see the entity relationship diagram of the generated database: ERD

Usage

After the application has started, open the client interface at: http://localhost.

Screenshot

License

The MicroStream BookStore Performance Demo is released under the MIT License.

bookstore-demo-performance's People

Contributors

fh-ms avatar rvansa avatar hg-ms avatar fullben avatar

Forkers

larry-n

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.