Giter Club home page Giter Club logo

storage's Issues

Do styling changes in openst-storage of follow the common style guide followed across all openst repos.

PROBLEM : Making sure a coding style is properly followed is a big undertaking, it often slips through the cracks leaving the work inconsistent across repos.

SOLUTION
We came across Prettier https://prettier.io/ that automatically style the code. This will help the codebase be uniform and easier to read alongwith saving good amount of our time.


Prettier supports:

JavaScript, including ES2017
JSX
Flow
TypeScript
CSS, Less, and SCSS
JSON
GraphQL
Markdown, including GFM
YAML
It removes all original styling and ensures the outputted code conforms to a consistent style. (See this post)

Scaling - Remove dependency on environment variables

Problem : Environment variables are a hard dependency. These lead to problems when multiple instances of OpenST-Storage are needed, each having connection to different cache instances (for example). Thus making scaling not possible.

Solution : Remove dependency on environment variables. How do we do that - Instead of reading the environment variables, we depend on config object passed in the OpenST Storage constructor. Thus 2 objects of OpenST Storage can have totally different config strategies and thus will not interfere amongst each other.

This will enable us to instantiate multiple instances of "openst-storage" based on an applications infrastructure requirements.

Integrate use of Amazon DynamoDB Accelerator (DAX) to speed up certain actions.

We should make use of Amazon DynamoDB Accelerator (DAX) to speed up certain actions, such as 'Batch Get', 'Batch Write', 'Update Item', etc. DAX delivers up to a 10x performance improvement โ€“ from milliseconds to microseconds โ€“ even at millions of requests per second. More information on DAX can be found here.

This would help increase the performance of certain operations.

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.