do I split out REST and streaming server actions?

19 views
Skip to first unread message

Gallagher Polyn

unread,
Apr 1, 2015, 3:36:01 PM4/1/15
to nod...@googlegroups.com
Hi,

I'm developing a demo app that watches the APIs for twilio, instagram, postmarkapp, twitter streaming for events of interest.

I've got a naive server.js file that includes the REST actions (handled by express) for twilio, instagram and postmarkapp and I've got twitterClient.stream callback on there, as well.

I've encountered some hiccups with local development of the demo and now I wonder what would be the best arrangement of these four groups across REST and streaming.

Can any reader suggest better approaches? For example, should I expect to split these out across several processes behind a proxy?

Best,

G
Reply all
Reply to author
Forward
0 new messages