This is a very simple DotNet Standard 2.0 package for receiving messages from AWS SQS in as simple a manner as I think is possible. Source code is on github https://github.com/RokitSalad/Helpful.Aws.Sqs.Receiver The package is available on nuget.org: https://www.nuget.org/packages/Helpful.Aws.Sqs.Receiver The package provides a few useful features which you don't get by default when using the AWS … Continue reading Helpful.Aws.Sqs.Receiver
Tag: C#
Don’t Stream JSON Data (Addendum)
Over the last few weeks, I've talked about how cool streaming JSON data can be and why maybe it might not always be the best idea. Have a read here: Large JSON Responses Don’t Stream JSON Data Don’t Stream JSON Data (Part 2) After the last instalment I thought that the code I listed for … Continue reading Don’t Stream JSON Data (Addendum)
Don’t Stream JSON Data (Part 2)
I've discussed the merits of JSON streaming in two prior posts: Large JSON Responses and Don’t Stream JSON Data, if you haven't read these yet then take a quick look first, they're not long reads. I'm attracted to the highly scalable proposition of scaling out the consumer, so many requests can be made individually rather than returning a … Continue reading Don’t Stream JSON Data (Part 2)
Large JSON Responses
The long slog from a 15 year old legacy monolith system to an agile, microservice based system will almost inevitably include throwing some API's in front of a big old database. Building a cleaner view of the domain allows for some cleaner lines to be drawn between concerns, each with their own service. But inside … Continue reading Large JSON Responses
Getting FitNesse to Work
Sample code here. Recently I've been looking into Specification by Example, which people keep defining to me as BDD done the right way. Specification by Example fully implemented includes the idea of an executable specification. A concept that has led me back to FitNesse having given it the cold shoulder for the last six or seven years. … Continue reading Getting FitNesse to Work
User Secrets in asp.NET 5
Accidentally pushing credentials to a public repo has never happened to me, but I know a few people for whom it has. AWS have an excellent workaround for this by using credential stores that can be configured via the CLI or IDE but this technique only works for IAM user accounts, it doesn't allow you … Continue reading User Secrets in asp.NET 5
Code Libraries and Dependencies
Nuget has made it really straight forward to share libraries across multiple applications. It's really straight forward. Just add a nuspec file and run 'nuget pack'. But before you do that next time, spare a thought for the poor dev who's trying to fit your library in their project among a dozen others when any … Continue reading Code Libraries and Dependencies
A Helpful Circuit Breaker in C#
Introduction With the increasing popularity of SOA in the guise of ‘microservices’, circuit breakers are now a must have weapon in any developer’s arsenal. Services are rarely 100% reliable; outages happen, network connections get pulled, memory gets filled, routing tables get corrupted. In an environment where multiple services are each calling multiple other services, the … Continue reading A Helpful Circuit Breaker in C#