Coder Social home page Coder Social logo

jpwilliams / distributed-promise Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 570 KB

Distribute a promise across multiple processes connected via Redis.

License: MIT License

JavaScript 1.61% TypeScript 98.39%
cache distributed memo promise redis shared

distributed-promise's Introduction

๐Ÿ‘‹ Hi! I'm Jack.

I'm a Founding Engineer at Inngest working to bring the benefits of event-driven architecture to the masses.

I โค๏ธ TypeScript, GraphQL, event-driven architecture (obviously), and working towards the perfect developer experience, specialising in architecting high-performance, distributed systems.

Here are a few things I'm keeping busy with:

  • ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Working as a Founding Engineer at Inngest.
  • ๐ŸŽน Creating MIDI Mixer, a Windows app that lets you control application volumes using MIDI.
  • โœ๐Ÿป Writing blog posts over at my notebook.
  • ๐ŸŒฑ Learning the Flying Trapeze.
Check out some of my latest blog posts

distributed-promise's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar jpwilliams avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

distributed-promise's Issues

How to use without Redis Client

Hi,
I have the following two functions and was wondering if I could use your package to accomplish same to join json files given the files' URL.

##Typescript

  lfts = []
  private async fetchLfts() {
    const proteins = await this._http
      .get(BASE_URL + 'proteins.json')
      .toPromise()
    this.lfts.push(proteins[0])

    const pigments = await this._http
      .get(BASE_URL + 'pigments.json')
      .toPromise()
    this.lfts.push(pigments[0])

    this.fetchLfts$()
  }

  fetchLfts$(): Observable<ITreeSelectOption[]> {
    return of(this.lfts) as Observable<ITreeSelectOption[]>
  }

I am not using Redis though.

Cheers

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • Replace dependency eslint-plugin-node with eslint-plugin-n 14.0.0
  • Update dependency typedoc to v0.25.13
  • Update dependency @types/node to v20
  • Update dependency eslint to v9
  • Update dependency eslint-import-resolver-typescript to v3
  • Update dependency eslint-plugin-jest to v28
  • Update dependency eslint-plugin-promise to v6
  • Update dependency eslint-plugin-standard to v5
  • Update dependency redis to v4 (redis, @types/redis)
  • Update dependency ts-node to v10
  • Update dependency typescript to v5
  • ๐Ÿ” Create all pending approval PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • callsites ^3.1.0
  • sigmund ^1.0.1
  • ulid ^2.3.0
  • @types/jest 26.0.20
  • @types/node 14.14.33
  • @types/redis 2.8.28
  • @types/sigmund 1.0.0
  • @typescript-eslint/eslint-plugin 2.34.0
  • @typescript-eslint/parser 2.34.0
  • eslint 6.8.0
  • eslint-import-resolver-typescript 2.4.0
  • eslint-plugin-import 2.22.1
  • eslint-plugin-jest 24.2.1
  • eslint-plugin-json 2.1.2
  • eslint-plugin-node 11.1.0
  • eslint-plugin-promise 4.3.1
  • eslint-plugin-standard 4.1.0
  • jest 26.6.3
  • onchange 7.1.0
  • redis 3.0.2
  • ts-jest 25.5.1
  • ts-node 9.1.1
  • typedoc 0.20.30
  • typescript 3.9.9

  • Check this box to trigger a request for Renovate to run again on this repository

Add `getTtl` function to WrapConfig options

This function could receive the data ouput from the work function given and return a ttl number for the psetex in _pushData.

This would cover many cases, but still not the HTTP example in the event where the resulting data is the document itself but the TTL comes from the headers.

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.