Hi I am currently developing a system in Node-Red. So it will receive input from POST and it will process it in the JS function node. But this is where the question begins. So if I put all the logics in one function node it will take like 100 lines of code (which now works btw). Should I just keep this or do I need to make several(like 2 or 3) function nodes in order to process the information in a sequential manner or is there no such need to do so? So instead of just having 3 nodes in a flow (receive input, function node to process logic, and output), should I separate the logic? (receive input, function node #1, function node #2, function node #n, and output)
Node-Red Function Nodes In Sequence
538 Views Asked by Reveluv Project At
1
There are 1 best solutions below
Related Questions in NODE-RED
- Node-red split msg.payload
- Node-Red how to combine latest mqtt messages reliably
- how to extract data from mongodb using node red with condition that no duplicate data and it should pass every 30sec
- node-red HTTP authentication through environmental variables
- how to get my javascript output in json format
- Azure IOT central command/NodeRed
- How to get the right grouping in my JSONata code?
- "Lost connection to server, reconnecting in 12s. Try now" node-red error
- Adding npm reference into a custom node in NodeRed
- Are there any ways to restart a flow in NodeRed?
- NodeRed catalogue hosted on Azure Artifact
- Node-RED - Variable Set Not Setting
- Why doesn't this simple javascript in nodeRED for Visual Flow Creator work?
- Node-Red OPC-UA Server only working for Double?
- Error delivering message to node:undefined [undefined]
Related Questions in FLOW-BASED-PROGRAMMING
- Smowcode studio error 443 server not found
- ERROR: Component interaction/ListenChange not available with base
- Node-Red Function Nodes In Sequence
- Travis-CI giving errors during commit
- Transactions / request-response-pattern in flow based/reactive programming
- Can Apache nifi be used as an application server?
- BPMN vs Flow Based Programming
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It depends how do you want to organize your graph. Sometimes split in several nodes is better for maintenance and reuse the function in other flows.
Once I see node-red is a solution for prototype, POC etc, if you want to move it to production or it is getting too complex I recommend do it in NodeJs.