npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cats-cradle/message-bus

v2.1.0

Published

![TypeScript](https://shields.io/badge/TypeScript-3178C6?logo=TypeScript&logoColor=FFF&style=flat-square) ![Lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen)

Downloads

2

Readme

@cats-cradle/message-bus

TypeScript Lifecycle

This service deploys a SNS topic for every registered @cats-cradle/message-schema. Other services can then subscribe to these topics.

Command Query Responsibility Segregation (CQRS)

Command Query Responsibility Segregation (CQRS) is a design pattern that separates the responsibility of handling commands (write operations) from queries (read operations) in a system. This separation enables more flexible and scalable architectures by allowing different models and data stores to be optimized for specific tasks.

Key Aspects of CQRS:

  1. Command and Query Separation: CQRS emphasizes the distinction between commands, which modify state, and queries, which retrieve data. This separation enables independent scaling, optimization, and maintenance of command and query processing components.

  2. Domain-Driven Design Integration: CQRS is often employed in conjunction with Domain-Driven Design (DDD) principles, enabling the creation of distinct command and query models that closely align with the domain concepts and requirements.

  3. Event Sourcing: CQRS is frequently coupled with event sourcing, where changes to the system's state are captured as a series of immutable events. Event sourcing facilitates auditability, scalability, and replayability of state changes, enhancing system reliability and resilience.

  4. Scalability and Performance: By segregating command and query processing, CQRS allows for independent scaling of write and read workloads, enabling optimizations tailored to the specific requirements of each operation type. This can lead to improved performance, responsiveness, and resource utilization.

  5. Complexity and Trade-offs: While CQRS offers benefits in terms of flexibility and scalability, it also introduces additional complexity, particularly in terms of system architecture, data synchronization, and consistency management. Teams adopting CQRS must carefully evaluate the trade-offs and complexities involved to ensure they align with the project's requirements and constraints.

By embracing CQRS principles, we aim to design systems that are better suited to evolving business needs, provide enhanced performance and scalability, and maintain a clear separation of concerns between command and query processing.

Data Lake

Message sent to any topic also get stored in a S3 data lake. This works using a Kinesis Firehose.

Messages are saved in the 123456789-default-data-lake-bucket in a structured manner for analysis. For example:

messages/2023/11/06/04/test-firehose-delivery-stream-2-2023-11-06-04-28-20-be72f66c-f0e7-4812-9b1d-064cee498d23

References