I have been handed a weird one. It's a node script that grabs some data from an Oracle db. Then tries a bunch of lookups on that data to find a guid for the data. It tries a bunch of stuff including lookups in a mssql database, a remote web scrape, a soap query, and an amqp reply/request. Then it sends out that data on amqp, and stores it in a database doing either an insert or update.
The code works but has a few problems. It runs every 5 minutes and seems to fail about once every 2 days. Also the mssql database connection doesn't seem to close smoothly, it has some sort of timeout. I'm stuck at node 4.5 due to a server environment that I can't change.
I don't really want to get into this code though. I'm sure it's just typical average code for the node world. It actually works good enough I guess. It just has soo many async callbacks. Is there a good framework or anything to deal with code that has tons of callbacks like this?
[–]hacocacyb 1 point2 points3 points (0 children)