π₯ Asynchronous Programming with Async and Await in ASP.NET Core ππ
https://www.arunyadav.in/codehacks/blogs/post/42/asynchronous-programming-with-async-and-await-in-aspnet-core
https://www.arunyadav.in/codehacks/blogs/post/42/asynchronous-programming-with-async-and-await-in-aspnet-core
www.arunyadav.in
Asynchronous Programming with Async and Await in ASP.NET Core
In this article, we will discuss Asynchronous Programming and its advantages with the help of real case scenarios Async and Await in ASP.NET Core. It can help handle multiple requests simultaneously, perform long-running operations in the background, andβ¦
Almost finished my new π₯content π₯to be published. A Friday or tomorrow could be a learning day.
Always block Fridays for at least 2 hours to learn new things, and read books/blogs/Youtube/Pluralsight.
DOT NOT LEARN ANYTHING IF YOU WANT AI TO WIN AND WRITE YOUR CODE #learning
Always block Fridays for at least 2 hours to learn new things, and read books/blogs/Youtube/Pluralsight.
DOT NOT LEARN ANYTHING IF YOU WANT AI TO WIN AND WRITE YOUR CODE #learning
π₯ .NET package management using NuGet and versioning ππ
https://www.arunyadav.in/codehacks/blogs/post/43/net-package-management-using-nuget-and-versioning
#DotNet #programming #nuget #fridayislearningday
https://www.arunyadav.in/codehacks/blogs/post/43/net-package-management-using-nuget-and-versioning
#DotNet #programming #nuget #fridayislearningday
www.arunyadav.in
.NET package management using NuGet and versioning
.NET package management using NuGet is a popular method of managing dependencies in .NET projects. NuGet is a package manager for .NET that enables developers to easily find, install, and update third-party libraries and tools in their projects. This articleβ¦
π₯ Part1 - Terraform on Microsoft Azure ππ
https://www.arunyadav.in/codehacks/blogs/post/44/part1-terraform-on-microsoft-azure
The follow-up of Part2 - Terraform to create a virtual machine (VM) in Azure will be published this Friday (28th April 2023)
#CloudComputing #DevOps #programming #programmer #azure #terraform
https://www.arunyadav.in/codehacks/blogs/post/44/part1-terraform-on-microsoft-azure
The follow-up of Part2 - Terraform to create a virtual machine (VM) in Azure will be published this Friday (28th April 2023)
#CloudComputing #DevOps #programming #programmer #azure #terraform
www.arunyadav.in
Part1 - Terraform on Microsoft Azure
Terraform in Azure enables users to define and manage their cloud infrastructure in a declarative way, using Terraform configuration files to describe the desired infrastructure state. With Terraform, users can create, modify, and destroy resources in Azureβ¦
π₯We will walk through provisioning a virtual machine (VM) in Azure using Terraform as Infrastructure as Code (IaC). We walk through step by step to create a configuration, create a plan and apply the plan to deploy Infrastructure. ππ
#terraform #iac
https://www.arunyadav.in/codehacks/blogs/post/45/part2-terraform-to-create-a-virtual-machine-vm-in-azure
#terraform #iac
https://www.arunyadav.in/codehacks/blogs/post/45/part2-terraform-to-create-a-virtual-machine-vm-in-azure
www.arunyadav.in
Part2 - Terraform to create a virtual machine (VM) in Azure
In this article, we will walk through provisioning a virtual machine (VM) in Azure using Terraform as Infrastructure as Code (IaC). We walk through step by step to create a configuration, create a plan and apply the plan to deploy Infrastructure. We willβ¦
π₯ SOLID Principles in C# ππ
https://www.arunyadav.in/codehacks/blogs/post/46/solid-principles-in-sharp
https://www.arunyadav.in/codehacks/blogs/post/46/solid-principles-in-sharp
www.arunyadav.in
SOLID Principles in C#
SOLID is a set of principles in object-oriented programming that aim to make software systems more maintainable, extensible, and easier to understand. These principles help to reduce code complexity, improve code maintainability, and increase the overallβ¦
π1
π₯ New Article: Durable Functions in Azure ππ
#azure #serverless #durablefunction
https://www.arunyadav.in/codehacks/blogs/post/47/durable-functions-in-azure-
#azure #serverless #durablefunction
https://www.arunyadav.in/codehacks/blogs/post/47/durable-functions-in-azure-
www.arunyadav.in
Durable Functions in Azure
#Kubernetes tip: Use labels to organize and manage your deployments effectively. They help you group resources, apply common configurations, and simplify updates. #DevOps #Containerization
π₯ New journey of Angular v16 ππ
https://www.arunyadav.in/codehacks/blogs/post/48/new-journey-of-angular-v16
#angular #angularv16 #developers #development #frontenddeveloper #UIUXDesigner #programmer
https://www.arunyadav.in/codehacks/blogs/post/48/new-journey-of-angular-v16
#angular #angularv16 #developers #development #frontenddeveloper #UIUXDesigner #programmer
www.arunyadav.in
New journey of Angular v16
Angular version 16 has major changes that will greatly impact Angular's future, popularity, and the lives of Angular developers! There's no denying that every new version of Angular introduces many exciting features, and Angular 16 will be no different. Angularβ¦
π₯ Angular v16 Signals - The New Reactivity Model ππ
βοΈ The Angular team is released its new reactivity model to
What is a Signal?
π A signal is a variable + change notification
π A signal is reactive, and is called a "reactive primitive"
π A signal always has a value
π A signal is synchronous
π A signal is not a replacement for RxJS and Observables for asynchronous operations, such as http.get
π Read More (https://www.arunyadav.in/codehacks/blogs/post/49/angular-v16-signals-the-new-reactivity-model)
#angular #angularv16 #developers #development #frontenddeveloper #UIUXDesigner #programmer #change
βοΈ The Angular team is released its new reactivity model to
'@angular/core'
, which means core framework. Signals is a new reactivity model that allows components to share data; when you change a signal's value, it automatically updates anything that uses it.What is a Signal?
π A signal is a variable + change notification
π A signal is reactive, and is called a "reactive primitive"
π A signal always has a value
π A signal is synchronous
π A signal is not a replacement for RxJS and Observables for asynchronous operations, such as http.get
π Read More (https://www.arunyadav.in/codehacks/blogs/post/49/angular-v16-signals-the-new-reactivity-model)
#angular #angularv16 #developers #development #frontenddeveloper #UIUXDesigner #programmer #change
www.arunyadav.in
Angular v16 Signals - The New Reactivity Model
The angular team introduces Signals in '@angular/core' for reactive data sharing in angular version 16. Components automatically update when a signal value changes. Signals address scalability issues with 'Zone.js' for better change detection. We will discussβ¦
π₯ Working with Azure Cosmos DB in your Azure Functions ππ
https://www.arunyadav.in/codehacks/blogs/post/52/working-with-azure-cosmos-db-in-your-azure-functions
Let's create something in real time.
π₯ Insert Record Function:
π The Insert Record function, as described in the previous code snippet, handles the HTTP POST request to insert a student record into a Cosmos DB collection.
π When a POST request is received, the function reads the request body, deserializes it into a StudentEntity object, and creates a new document in the specified Cosmos DB collection with the student record data.
πThe function returns the inserted document as the response.
π₯ Change Feed Function:
π The Change Feed function, as described in the previous code snippet, uses the Cosmos DB trigger to monitor changes in a specific Cosmos DB collection.
π When a change occurs, such as an insertion, update, or deletion of a document in the monitored collection, the Change Feed function is triggered.
π The function receives the batch of changed documents as the input parameter and can perform custom logic to process the changed documents.
π₯ Relationship between the functions:
π After the Insert Record function inserts a new student record into the Cosmos DB collection, the Change Feed function can be triggered if the insertion causes a change in the monitored collection.
πThe Change Feed function can then process the inserted document or perform any desired logic based on the change. For example, you can use the Change Feed function to send notifications, update related data, or trigger other actions whenever a new student record is inserted.
#cosmos #database #azure #development #programmer #developers
https://www.arunyadav.in/codehacks/blogs/post/52/working-with-azure-cosmos-db-in-your-azure-functions
Let's create something in real time.
π₯ Insert Record Function:
π The Insert Record function, as described in the previous code snippet, handles the HTTP POST request to insert a student record into a Cosmos DB collection.
π When a POST request is received, the function reads the request body, deserializes it into a StudentEntity object, and creates a new document in the specified Cosmos DB collection with the student record data.
πThe function returns the inserted document as the response.
π₯ Change Feed Function:
π The Change Feed function, as described in the previous code snippet, uses the Cosmos DB trigger to monitor changes in a specific Cosmos DB collection.
π When a change occurs, such as an insertion, update, or deletion of a document in the monitored collection, the Change Feed function is triggered.
π The function receives the batch of changed documents as the input parameter and can perform custom logic to process the changed documents.
π₯ Relationship between the functions:
π After the Insert Record function inserts a new student record into the Cosmos DB collection, the Change Feed function can be triggered if the insertion causes a change in the monitored collection.
πThe Change Feed function can then process the inserted document or perform any desired logic based on the change. For example, you can use the Change Feed function to send notifications, update related data, or trigger other actions whenever a new student record is inserted.
#cosmos #database #azure #development #programmer #developers
www.arunyadav.in
Working with Azure Cosmos DB in your Azure Functions
Azure Cosmos DB is a powerful and scalable database service provided by Microsoft Azure. It is designed to handle globally distributed data to handle large-scale, high-performance applications that require low latency. In this article, we see how to storeβ¦
π₯ Angular Authentication using JWT token ππ
https://www.arunyadav.in/codehacks/blogs/post/36/angular-authentication-using-jwt-token
π₯ Steps to implementing JWT authentication in angular
π Install dependencies
π Create a login page
π Create AuthService
π Store JWT token
π Create a guard to prevent route
πCreate Http Interceptor
#AngularAuthentication #JWTAuthentication #development #programmer #developers #AngularJWT #TokenAuthAngular
https://www.arunyadav.in/codehacks/blogs/post/36/angular-authentication-using-jwt-token
π₯ Steps to implementing JWT authentication in angular
π Install dependencies
π Create a login page
π Create AuthService
π Store JWT token
π Create a guard to prevent route
πCreate Http Interceptor
#AngularAuthentication #JWTAuthentication #development #programmer #developers #AngularJWT #TokenAuthAngular
www.arunyadav.in
Angular Authentication using JWT token
Web applications require authentication, which involves verifying the identity of a user, so JWT (JSON Web Token) is a popular mechanism for authenticating users.
π1
π₯ Use MediatR in .NET Core with CQRS implementation ππ
https://www.arunyadav.in/codehacks/blogs/post/28/use-mediatr-in-net-core-with-cqrs-implementation-
π₯ CQRS (Command Query Responsibility Segregation)
π Categorized into two categories: Commands and Queries.
π It helps improve the maintainability and reliability of software systems.
π₯ Mediator Pattern
π MediatR is an "in-process" implementation
π It enables objects to not communicate directly with each other but instead send messages to the mediator
π It helps to implement flexible and scalable systems
π Objects can be added or removed without affecting the existing objects
π₯ Implementation using MediatR is a .Net library
https://www.arunyadav.in/codehacks/blogs/post/28/use-mediatr-in-net-core-with-cqrs-implementation-
π₯ CQRS (Command Query Responsibility Segregation)
π Categorized into two categories: Commands and Queries.
π It helps improve the maintainability and reliability of software systems.
π₯ Mediator Pattern
π MediatR is an "in-process" implementation
π It enables objects to not communicate directly with each other but instead send messages to the mediator
π It helps to implement flexible and scalable systems
π Objects can be added or removed without affecting the existing objects
π₯ Implementation using MediatR is a .Net library
www.arunyadav.in
Use MediatR in .NET Core with CQRS implementation
MediatR is a .Net library that is used to implement loose coupling between components, MediatR acts as a central hub for handling requests and responses between different parts of the application. You can also implement CQRS (Command and Query Responsibilityβ¦
π₯ Part 01 - Clean Architecture Overview ππ
https://www.arunyadav.in/codehacks/blogs/post/20/part-01-clean-architecture-overview?prvew-on-tab=1
π₯ Clean Architecture consists of several circles or layers
π The innermost circle is the business logic
π The next layer is the interface adapters, which are responsible for converting data between the business logic and the outer layers.
π Finally, the outer layer is the frameworks and drivers, which are responsible for providing external services to the application
The flow of dependencies in the diagram moves toward the center. The centermost point is referred to as the Application Core, which acts as the nucleus of the diagram and is not dependent on any other layers. The entities and interfaces occupy the central position while domain services, which provide implementation to the central interfaces, surround them. The UI and Infrastructure layers, located on the exterior, are both dependent on the Application Core.
#Architecture #pattern #development #programmer #developers
https://www.arunyadav.in/codehacks/blogs/post/20/part-01-clean-architecture-overview?prvew-on-tab=1
π₯ Clean Architecture consists of several circles or layers
π The innermost circle is the business logic
π The next layer is the interface adapters, which are responsible for converting data between the business logic and the outer layers.
π Finally, the outer layer is the frameworks and drivers, which are responsible for providing external services to the application
The flow of dependencies in the diagram moves toward the center. The centermost point is referred to as the Application Core, which acts as the nucleus of the diagram and is not dependent on any other layers. The entities and interfaces occupy the central position while domain services, which provide implementation to the central interfaces, surround them. The UI and Infrastructure layers, located on the exterior, are both dependent on the Application Core.
#Architecture #pattern #development #programmer #developers
www.arunyadav.in
Part 01 - Clean Architecture Overview
Clean Architecture: Maintainable, Testable, and Scalable Applications
π₯ Real-Time Applications with Azure SignalR, Angular, and .Net Core ππ
https://www.arunyadav.in/codehacks/blogs/post/55/realtime-applications-with-azure-signalr-angular-and-net-core
We are creating a real-time chat application with a professional and user-friendly interface. The application allows users to enter their names, start a chat session, and exchange messages in real-time. We are using Angular, SignalR, and .NET Core to develop a real-time chat application.
#Azure #SignalR #DotNet #programmer #developers
https://www.arunyadav.in/codehacks/blogs/post/55/realtime-applications-with-azure-signalr-angular-and-net-core
We are creating a real-time chat application with a professional and user-friendly interface. The application allows users to enter their names, start a chat session, and exchange messages in real-time. We are using Angular, SignalR, and .NET Core to develop a real-time chat application.
#Azure #SignalR #DotNet #programmer #developers
www.arunyadav.in
Real-Time Applications with Azure SignalR, Angular and .Net Core
We are creating a real-time chat application with a professional and user-friendly interface. The application allows users to enter their names, start a chat session, and exchange messages in real-time. We are using Angular, SignalR, and .NET Core to developβ¦
Kubernetes clusters are under attack in hundreds of organizations
Kubernetes (K8s) clusters belonging to more than 350 organizations, open-source projects, and individuals have been detected as openly accessible and unprotected. More than half of those have been breached and had an active campaign with deployed malware/backdoors.
Two common misconfigurations exploited in the wild
1. The research highlighted two common misconfigurations, The first grants anonymous access with privileges whereby an anonymous unauthenticated user only undergoes one phase of authorization. "By default, the anonymous user has no permissions, but we have seen that practitioner in the wild, and in some cases, give privileges to the anonymous user," they wrote.
When mixing all the above, a severe misconfiguration is created. "We have seen cases in which practitioners bind the anonymous user role with other roles, often with admin roles, which puts their clusters in danger," according to the researchers.
2. The second issue is a misconfiguration of the
"When you run the same command with the following flags 'βaddress=
Kubernetes (K8s) clusters belonging to more than 350 organizations, open-source projects, and individuals have been detected as openly accessible and unprotected. More than half of those have been breached and had an active campaign with deployed malware/backdoors.
Two common misconfigurations exploited in the wild
1. The research highlighted two common misconfigurations, The first grants anonymous access with privileges whereby an anonymous unauthenticated user only undergoes one phase of authorization. "By default, the anonymous user has no permissions, but we have seen that practitioner in the wild, and in some cases, give privileges to the anonymous user," they wrote.
When mixing all the above, a severe misconfiguration is created. "We have seen cases in which practitioners bind the anonymous user role with other roles, often with admin roles, which puts their clusters in danger," according to the researchers.
2. The second issue is a misconfiguration of the
kubectl
proxy with flags that unknowingly expose the Kubernetes cluster to the internet, the researchers said. Impacted hosts included organizations across a variety of sectors such as financial services, aerospace, automotive, industrial, and security."When you run the same command with the following flags 'βaddress=
0.0.0.0
βaccept-hosts .*
', the proxy on your workstation will now listen and forward authorized and authenticated requests to the API server from any host that has HTTP access to the workstation. Mind, that the privileges are the same privileges that the user who ran the 'kubectl proxy' command has."π₯ #rxjs best practices in Angular ππ
https://www.arunyadav.in/codehacks/blogs/post/58/rxjs-best-practices-in-angular
#angular #angularv16 #developers #development #frontenddeveloper #UIUXDesigner #programmer
https://www.arunyadav.in/codehacks/blogs/post/58/rxjs-best-practices-in-angular
#angular #angularv16 #developers #development #frontenddeveloper #UIUXDesigner #programmer
www.arunyadav.in
RxJS best practices in Angular
Angular, one of the leading front-end frameworks, brings the mighty RxJS library to the forefront for handling asynchronous operations. While RxJS empowers developers to master intricate data flows seamlessly, it also introduces a set of challenges when notβ¦