Tags » Mongodb

Microservices Development with Scala, Spray, MongoDB, Docker and Ansible

This article tries to provide one possible approach to building microservices. We’ll use Scala as programming language. API will be RESTful JSON provided by… 2,081 more words

Scala

Raspberry Pi: Running NodeJS and MongoDB on Pi

Recently I got a Raspberry Pi B+ and I couldn’t wait to start playing with it. My first project was a server application, which runs on NodeJS and uses MongoDB for storing data.  381 more words

Mongodb

[mongodb] get a random document from a collection

Problem
From a MongoDB collection, you want to get a random document.

Solution

import random

def get_random_doc():
    # coll refers to your collection
    count = coll.count()
    return coll.find()
… 8 more words
Python

Big Data in Cities: Benefits and Challenges

Introduction

By 2050 it is expected that 70% of the world’s population will live in cities. Management of infrastructure and utility assets is therefore a growing priority. 2,295 more words

Business Intelligence

Command query responsibility segregation pattern with MongoDB, Redis and ElasticSearch

Problem:

In large scales data-centric enterprise application read write ratio is very high. In that case we want the fast read access with different search criteria from enterprise database. 267 more words

Custom Json Serializer and Deserializer for Joda datetime objects

This post demonstrates how to add custom Json serializer and deserializer classes for Joda datetime objects when used with Jackson JSON processor. I use LocalDateTime in the examples here but the same approach applies to other joda date(time) classes. 426 more words

Java