Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

InstaNews – It's My Idea to Create Hottest Trending NEWS

DZone's Guide to

InstaNews – It's My Idea to Create Hottest Trending NEWS

News content has become increasingly popular in the digital age, and mobile delivery is the preferred format. Here's a neat idea for a trending news app.

Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

InstaNews

In previous articles, we have harvested Twitter Trends and Google Hot Trends using Spring Batch. Meanwhile, I got an idea to create a NEWS app (for smart phones and tablets) which will use the crawled trending topics to generate the NEWS for "InstaNews." Here is the thought process:

  • When something happens around us, people share the information with their friends using tweets and searches more on the google. By using the crawled trending topics and the twitter tweets search, we can generate the trending tweets.
  • Google provides the hot searches and the associated content.

With the above two points, the application will get the content.  We are targeting audience with hot news, the content should reach to the audience very quickly. Below stats are the motivation to choose mobile app than a website for this idea.  The stats tells "It’s APP world," mobile apps are more reachable than the web.

Mobile Usage Growth

Now it's time to see the system architecture of the “InstaNews” app.

InstaNews Architecture

The system architecture has a node js server to harvest the trends and the NEWS. The other node js server form is backed up by the load balancer which will serve content to end users. The NEWS content is maintained in Memcached server.

Now, let us see the technology stack proposed for “InstaNews."

InstaNews Technology Stack


Now let me justify the technology stack. Before getting into the details, I want to make the technology stack which doesn’t require a long learning curve for the web developers. Keeping that in mind I have chosen lightweight technology stack consists of Node.JS, ExpressJS, PhoneGap, Memcached.

Node JS: Event-driven I/O serverside JavaScript environment and which will be horizontally scalable(Anyone can learn easily who has javascript knowledge).

Express JS: The HTTP node module to expose REST services. PhoneGap will consume the REST services.

Memcached: The cache to store the trends and NEWS content. I have chosen as it is simple to use volatile data. I don’t want to persist the content as the content changes so frequently. Refresh the content at specific intervals.

Be Innovative!!!

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:
node js ,phone gap ,memcached ,twitter- news ,google search ,spring batch

Published at DZone with permission of Siva Prasad Rao Janapati, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}