I'm parsing remote JSON data into MongoDB, Actually i'm parsing dynamic JSON data,but i want to update MongoDB for every 30 Sec with dynamic data.
parsing JSON data like this
require 'open-uri'
require 'json'
result = JSON.parse(open("url_of_json_service").read)
how i can update MongoDB for every 30sec?