简体   繁体   中英

Which of two methods of using python within erlang should I use?

I have a project where I use erlang to aggregate RSS, and I use python to process the RSS feeds.

Method 1:

Use an erlang port, using erlport.org, to call python. I'm not sure how to design the python code to be asyncrhonous using erlport.

Method 2:

Use erlang to call on a RESTful interface with Tornado that does the processing (asynchro downloading of urls -- asynchro procssing)

I haven't worked Erlang<->Python before but erlport.org seems promising. I would try that first before getting into greasiness with REST and what not. Ie I didn't provide and answer but a recommendation :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM