Code Monkey home page Code Monkey logo

dynamic-programming-environment's Introduction

Architecture

  • Approach#1

    Ekran Resmi 2023-09-13 03 00 48
  • Approach#2

    Ekran Resmi 2023-09-13 03 02 50

    In theory this should speed up the process of running our users code because now we don't need to make that entire additional request

    Another big upside to this approach is that now it would be a user's machine, it would up to a user to reach out to NPM and download an individual file as opposed to having tons and tons of requests coming from our server.

    Ekran Resmi 2023-09-13 03 18 21

Pros & Cons

  • Remote

    • We can cache downloaded NPM modules to bundle code faster
    • Will work better for users with slow devices or limited internet connections
  • Local

    • Removes an extra request to the API server - faster code execution
    • We don't have to maintain an API server
    • Less complexity - no moving code back and forth

Caching Layer

  • IndexedDB

    • A browser API for storing data inside the browser
    • Can store large amounts of data
    • Data persists even when you close the browser
    • Data is organized by keys and values
    Ekran Resmi 2023-09-13 08 32 24

Dependencies

esbuild.github.io

  • react
  • esbuild
  • localforage (helper library for indexedDB)

dynamic-programming-environment's People

Contributors

kushadige 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.