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

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

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!!!

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda

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.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}