segunda-feira, 27 de fevereiro de 2017

Push Notification + Message Broker + MongoDB Client

DevOps promises higher throughput for software delivery, a more stable platform, and better security. Doesn't everyone want that?




http://www.buzinga.com.au/buzz/mobile-push-notification-services/



1)create the path :  C:\data\db\    (MongoDB data Storage)

2) cd C:\Program Files (x86)\MongoDB\Server\3.2\bin

3)Start the service: mongod --storageEngine=mmapv1


http://www.rabbitmq.com/download.html

Open the Eclipse and create the simple test.

  MongoClient    mongoClient = new MongoClient("localhost", 27017);     
  DB db = mongoClient.getDB("reports");      

  BasicDBObject documento = new BasicDBObject();     
  documento.append("user", user);   

  documento.append("message", message);          
   DBCollection collec = db.getCollection("data");    
  collec.insert(documents);          

 List lista = new ArrayList();  

 DBCursor cursor = collec.find();        
 while (cursor.hasNext())
 {           
    DBObject dbo = cursor.next();         
     Mensagem  mensagem= new Mensagem();     
     mensagem.setUser((String) dbo.get("user"));          
    mensagem.setMessage((String) dbo.get("message"));         
   lista.add(mensagem);        
}            



Clojure - Programação Funcional: http://clojure.org/about/functional_programming - Isolar a complexidade de negócio

Datomic: http://www.datomic.com/ - Non-relational database

Kafka http://kafka.apache.org/ - Message Queue

Postar um comentário