Code Monkey home page Code Monkey logo

experiment-sidebar-elastic's Introduction

EXPERIMENT ELASTIC EXPRESS

Links

Implemented features

  • 'migrate.js' -> migration from mysql table into elasticsearch index
  • API '/inboxes/:id/:page_count/:from' -> attempt to simulate 'Inboxes' query in Mobile API v1

Setup

  1. clone this repo
  2. docker compose up
  3. Try to check localhost:9200. if it didn't shows anything, check "Troubleshoot" section below
  4. To run the express app, execute docker compose exec app npm run start:dev

Troubleshoot

Performance test

  • we provided performance_test folder which contain k6 scripts to run performance test against this API
  • requirements:
    • k6 & nodejs installed locally (without docker)
  • how to run: from root of this repo run node ./performance_test/run_all.js

References

experiment-sidebar-elastic's People

Contributors

azophy avatar

Watchers

 avatar

experiment-sidebar-elastic's Issues

next todos

features to be implemented

  • create seeder using elastic's bulk feature. bulk feature allows inserting lots of data quickly

    ref: https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/7.17/bulk_examples.html

  • migrate data from mysql to elastic. need to have proper mapping for it to works. may also need bulk feature as mentioned above

    • after that need to do benchmarking to compare performances & accuracy againts mysql
  • experiment with pagination, specifically cursor based pagination

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.