Using MongoDB .NET Driver with .NET Core WebAPI

What’s about Problem / solution format brings an easier understanding on how to build things, giving an immediate feedback. Starting from this idea, the blog post I will present step by step how to build a web application to store your ideas in an easy way, adding text notes, either from desktop or mobile, with few characteristics: run fast, save on the fly whatever you write, and be reasonably reliable and secure. This article will implement just the backend, WebApi

Continue Reading

MongoDb and LINQ: How to aggregate and join collections

Data aggregations are very helpful whenever you need to create metrics or get more insights from the data. Furthermore, joining multiple MongoDb collections may provide more meaningful results. This article will be a light intro on how to do run these on MongoDb using .NET Driver and LINQ. Notes before starting This article is the 3rd article, continuing Part 1: How to search good places to travel (MongoDb LINQ & .NET Core), and Part 2: Paging in MongoDB – How

Continue Reading

Paging in MongoDB – How to actually avoid poor performance ?

What is the best way (performance wise) to paginate results in MongoDB ? Especially when you also want to get the total number of results ? Project running with .NET Core 2.0 Where to start ? For answering to these questions, let’s start from the datasets defined in my earlier article Part 1: How to search good places to travel (MongoDb LINQ & .NET Core). That article was quick introduction, on how to load big chunks of data and then

Continue Reading

How to search good places to travel (MongoDb LINQ & .NET Core)

Let’s build a simple WebApi with .NET Core and MongoDb to query the details of different destinations around the globe. We’ll do the search with MongoDb LINQ, running different scenarios. For a brief introduction on how to build and test a full .NET CORE WebApi with MongoDB please check my earlier article: Using MongoDB .NET Driver with .NET Core WebAPI. This article continues with 2 other parts: Part 2 – Paging in MongoDB – How to actually avoid poor performance

Continue Reading

The C4 software architecture model

Is there an easy way to succinctly and unambiguously communicate the architecture of a software system ? Something that could highlight the requirements, and still be brief ? The Agile Manifesto prescribes that teams should value working software over comprehensive documentation. This doesn’t mean that we should not create documentation; it just means we should create documentation that provides value and at the same time does not hinder the team’s progress. We can achieve this using C4 architecture model. It

Continue Reading

Distributed cache using Redis and ASP.NET Core

What is Redis ? Redis is a super fast non-relational database that uses keys to map to different data types. It is a key value data store (NoSQL) allowing to solve efficiently many different problem sets. Redis was created by Salvatore Sanfilippo in 2009, and Sanfilippo still remains the lead developer of the project today. It is a mature and hugely popular open source project, being used by many companies and in countless mission-critical production environments. Here is an interview

Continue Reading

Visual Studio Code – Connect to Twitter with Python

Visual Studio Code is a cross platform editor that supports multiple programming languages. Combining with Python, and its associated 3rd party packages that wrap Twitter’s API, we can easy connect to Twitter, read and use the data in just few lines of code. Why Twitter ? Twitter is a popular social network where users can share short SMS-like messages called tweets. Users share thoughts, links and pictures on Twitter, journalists comment on live events. The list of different ways to

Continue Reading

Angular 2 with ASP.NET Core Web API – Build a simple Notebook app – Part 1

This article presents a step by step approach to create an Angular2 application, consuming an ASP.NET Core REST WebAPI. It continues the earlier post Using MongoDB with ASP.NET Core WebAPI and presents a gentle introduction to Angular 2 framework. This is the first part and the scope of the series is to present step by step how to build a web application to store your ideas in an easy way, adding text notes, either from desktop or mobile, with few

Continue Reading