© 2022 Hashnode
#aspnet-core
平时在购物支付的时候,一般我们使用支付宝或微信转账支付的时候,都是扫码、支付,然后立刻得到结果,说你支付了多少钱,如果你绑定的是银行卡,可能这个时候你并没有收到支付的确认消息。往往是在很短的一段时间之后,才会收到银行卡发来的短信,告诉你支付的信息。 支付平台如何保证这笔帐不出问题? 支付平台必须保证数据正确性,保证数据的并发安全性,保证消息最终一致性。 我们可以通过一下几种方式保证数据一致性: 分布式锁 操作某条数据时先对其进行锁定,可以使用 Redis 或 Zookee…
channel 支持 publisher confirms Publisher confirms 是 RabbitMQ 对 AMQP 0.9.1 协议的扩展,因此不是默认支持的。 要使用channel中的 ConfirmSelect方法开启发布者确认: var channel = connection.CreateModel(); channel.ConfirmSelect(); 几种方案 策略1: Publishing Messages Individually(单独发布…
Introduction As a mechanism to explore the different ways bindings work in Blazor, we are going to create a Blazor WebAssembly project in Visual Studio 2022 with a demo model that has enough propertie…
Any RESTful Web API relies on request and response. Every status code has a specific significance, and we must ensure that we are sending a proper answer with a valid status code during development. …
The IActionResult type is a based abstraction of an ActionResult. 💡 An ActionResult is a return type of a controller method, also called an action method, and serves as the base class for *Result cl…
Hey fellows, In this article series I’m going to cover the following areas in the Web development with C#, ASP .NET Core MVC, MVVM Tech Stack. ASP .NET Core Razor Pages and Blazor MVC Architecture MV…
Introduction In the second part of the 'To-Do List' series, I'm going to introduce the basic functionality to read and write to MongoDB from C# in .Net 6. This will build upon the code from my previo…
Suppose you want to develop an application with real-time web functionalities like a chat application or a Reactive dashboard. Generally, we use web socket programming for the real-time web applicatio…
In this article, we will talk about Distributed Caching, NCache, and its features such as Object Caching, Session Caching, and Response Caching along with practical implementation in ASP.NET Core. Wha…
Introduction Hello guys 😀, welcome to day 2 of our Slack Clone build series. This blog post will serve as an informational platform for the videos as we build. ##Resources List Icon Set Iconify is a …