512 Followers
·
Follow

Message grouping and deduplication using SQS and Ruby

In this article, let’s try to design a specific event-based queuing architecture. We will use the term event or message interchangeably through the post.

Understanding Requirements

We are trying to build a user analytics system where every user action must be tracked and stored for later reporting and behavioral analysis. Let’s think of something similar to Google analytics or Segment that we are building in-house.

  1. Every user is given a unique user_id and that will help us identify the user across the board
  2. The sequence in which the user performs actions must be preserved. …

A summary of features available in TypeScript v3.6+ you should definitely pay attention to.

Image for post
Image for post

The TypeScript language group has been churning out new features at an amazing pace without significant breaking changes. As seen in the recent State of Javascript survey, this has led to an increasingly successful adoption of the language across the community.

This post will try to summarize the most important features you should be taking advantage of. We will highlight features from the following recent releases:

Image for post
Image for post
TypeScript Release Timeline

Note: Before diving into any of these features, you should check out the TypeScript playground where you can test out all the features. …

A brief overview of pure replacement functions over Lodash/Underscore.js

Image for post
Image for post
Functional Programming Illustrated

This post is a compilation of recipes of the most commonly used Lodash/Underscore.js utility functions to help you understand how much can be done using pure Javascript functions. Some of these functions are supported by ES5 and some require ES6 support.

The core design aspect of libraries like Lodash or Underscore.js is functional programming where you have pure functions that have no side-effects or do not mutate state. Well, the formal definition follows below…

What is functional programming anyway?

There are many ways to explain functional programming as a concept, but the definition below is succinct:

Functional programming is a style of programming which models computations as the evaluation of expressions. Contrast this with imperative programming where programs are composed of statements which change global state when executed. Functional programming typically avoids using mutable state and favors side-effect free functions and immutable data instead. …

About

RC

Full Stack Engineer @ Pro.com , Ex-ThoughtWorker • Ruby,JavaScript, iOS, Frontend, Devops https://rcdexta.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store