socketio / socketio/socket.io

Non-blocking parser

Open
#5,093 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement package:socket.io-parser
Dominant language
TypeScript
Stars
63.2k
Forks
10.3k
Avg merge
11d 20h
Merged PRs (30d)
2

Description

I was having some troubles in our app with parsing JSON of several hundred MB. As a result I needed something that could handle that without starving the event-loop. I found https://github.com/ibmruntimes/yieldable-json and then made a socket.io-parser version which uses it https://github.com/hrdwdmrbl/socket.io-yieldable-parser.

Are you aware of any other similar parsers?

I was also interested in building a streaming parser, but it would seem like I would need to implement such a thing higher up the socket.io stack, eh?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked yieldable-json and socket.io-yieldable-parser projects first, then inspect the socket.io parser path to determine where non-blocking or streaming behavior would belong. Done is not defined by the issue; a contributor would need maintainer agreement on whether to add a parser and its expected API.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.