<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Sagar Bakshi</title>
    <description>The latest articles on Forem by Sagar Bakshi (@sagarbakshi).</description>
    <link>https://forem.com/sagarbakshi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F847054%2Fd16f35c0-5110-4fc2-b7f9-374752c3f651.jpeg</url>
      <title>Forem: Sagar Bakshi</title>
      <link>https://forem.com/sagarbakshi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sagarbakshi"/>
    <language>en</language>
    <item>
      <title>NodeJS Streams</title>
      <dc:creator>Sagar Bakshi</dc:creator>
      <pubDate>Tue, 28 Mar 2023 10:28:07 +0000</pubDate>
      <link>https://forem.com/sagarbakshi/nodejs-streams-4h52</link>
      <guid>https://forem.com/sagarbakshi/nodejs-streams-4h52</guid>
      <description>&lt;p&gt;In Node.js, streams are a way of handling data in chunks or pieces, rather than loading the entire file or data into memory all at once.&lt;/p&gt;

&lt;p&gt;A stream is a sequence of data that is read from or written to over time. In other words, data is transferred from one end of the stream to the other in small pieces or chunks. There are two types of streams in Node.js: Readable streams and Writable streams.&lt;/p&gt;

&lt;p&gt;A Readable stream is used for reading data, while a Writable stream is used for writing data. Readable streams are created from data sources such as files, network sockets, or HTTP requests, while Writable streams are created for data sinks like files, network sockets, or HTTP responses.&lt;/p&gt;

&lt;p&gt;Streams can be used to handle large amounts of data without consuming too much memory, which makes them useful in situations where the entire dataset cannot be loaded into memory at once. For example, when streaming a large video file over the internet, the video can be sent in small chunks using a Readable stream, and the chunks can be displayed by the client application as they are received, without the need to download the entire file first.&lt;/p&gt;

&lt;p&gt;Node.js provides a set of built-in modules for working with streams, such as "fs" for working with file streams, and "http" for working with network streams. Streams can also be piped together to allow data to flow from one stream to another, allowing for more efficient data processing.&lt;/p&gt;

&lt;p&gt;Overall, streams in Node.js provide a flexible and efficient way of handling large amounts of data, allowing for more efficient and optimized data processing.&lt;/p&gt;

&lt;p&gt;Example:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fs = require('fs');

// Create a readable stream from a file
const readableStream = fs.createReadStream('input.txt');

// Create a writable stream to a file
const writableStream = fs.createWriteStream('output.txt');

// Pipe the data from the readable stream to the writable stream
readableStream.pipe(writableStream);

// Log a message when the data has been written to the file
writableStream.on('finish', () =&amp;gt; {
  console.log('Data has been written to the file');
});

// Log any errors that occur
readableStream.on('error', (err) =&amp;gt; {
  console.error(err);
});

writableStream.on('error', (err) =&amp;gt; {
  console.error(err);
});

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In above example, we create a readable stream from a file called "input.txt" using the fs.createReadStream() method. We also create a writable stream to a file called "output.txt" using the fs.createWriteStream() method.&lt;/p&gt;

&lt;p&gt;We then pipe the data from the readable stream to the writable stream using the readableStream.pipe(writableStream) method. This will transfer the data from the input file to the output file in chunks, without loading the entire file into memory at once.&lt;/p&gt;

&lt;p&gt;Finally, we use the on('finish', () =&amp;gt; {...}) event to log a message when the data has been written to the output file, and the on('error', (err) =&amp;gt; {...}) events to log any errors that occur during the data transfer.&lt;/p&gt;

</description>
      <category>node</category>
      <category>stream</category>
      <category>programming</category>
      <category>backend</category>
    </item>
    <item>
      <title>Azure Security Solutions</title>
      <dc:creator>Sagar Bakshi</dc:creator>
      <pubDate>Sun, 26 Mar 2023 14:06:39 +0000</pubDate>
      <link>https://forem.com/sagarbakshi/azure-security-solutions-5238</link>
      <guid>https://forem.com/sagarbakshi/azure-security-solutions-5238</guid>
      <description>&lt;p&gt;In today's digital age, data security is of utmost importance. Companies must take every possible step to protect their sensitive information from hackers, cybercriminals, and other malicious actors. Microsoft Azure offers a comprehensive suite of security solutions designed to keep your data safe and secure. In this blog, we will explore some of the Azure security solutions available and how they can help protect your organization.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Azure Security Center:&lt;/strong&gt;&lt;br&gt;
Azure Security Center is a unified security management system that provides visibility and control over the security of your Azure resources. It offers advanced threat protection across hybrid workloads and allows you to monitor security compliance across your organization. Azure Security Center also provides recommendations and actionable steps to help you mitigate potential threats, making it easier to manage your security posture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Azure Active Directory:&lt;/strong&gt;&lt;br&gt;
Azure Active Directory (AD) is a cloud-based identity and access management service that enables secure access to your applications and resources. With Azure AD, you can manage user identities and access permissions across all your applications and services. It also provides single sign-on (SSO) for your applications, which enhances user productivity and simplifies access management.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Azure Firewall:&lt;/strong&gt;&lt;br&gt;
Azure Firewall is a cloud-native network security service that protects your Azure Virtual Network resources. It provides centralized network security policy management and enables you to create, enforce, and log application and network connectivity policies across your subscriptions and virtual networks. Azure Firewall also integrates with Azure Monitor, allowing you to monitor and log network traffic in real-time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Azure DDoS Protection:&lt;/strong&gt;&lt;br&gt;
Distributed denial-of-service (DDoS) attacks can cripple your organization's network and cause extensive damage to your reputation. Azure DDoS Protection is a service that provides advanced protection against DDoS attacks, enabling you to maintain business continuity even in the face of an attack. With Azure DDoS Protection, you can detect and mitigate attacks in seconds, protecting your network and applications from downtime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Azure Key Vault:&lt;/strong&gt;&lt;br&gt;
Azure Key Vault is a cloud-based service that helps you safeguard cryptographic keys and other secrets used by your applications and services. It provides secure storage and management of sensitive data such as passwords, certificates, and encryption keys. Azure Key Vault allows you to centralize your key management, ensuring that your keys are always secure and available when needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
In today's digital landscape, it's critical to protect your data from threats. Azure Security Solutions offer a comprehensive suite of tools and services to help you safeguard your information and maintain business continuity. From Azure Security Center to Azure Key Vault, Microsoft Azure provides a range of security solutions that can help you mitigate potential threats and stay ahead of cybercriminals. So, if you're looking for a secure and reliable cloud platform, look no further than Microsoft Azure.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>cloud</category>
      <category>security</category>
    </item>
    <item>
      <title>Azure Cloud Storage</title>
      <dc:creator>Sagar Bakshi</dc:creator>
      <pubDate>Sat, 25 Mar 2023 20:21:04 +0000</pubDate>
      <link>https://forem.com/sagarbakshi/azure-cloud-storage-1g1d</link>
      <guid>https://forem.com/sagarbakshi/azure-cloud-storage-1g1d</guid>
      <description>&lt;p&gt;Azure Storage is a cloud-based storage solution that provides highly scalable and secure storage services for data objects, files, and messages. It is a reliable, cost-effective, and versatile storage platform that can be used by businesses of all sizes. In this blog, we will explore Azure Storage in detail and provide some examples of how it can be used.&lt;/p&gt;

&lt;p&gt;Azure Storage Types&lt;br&gt;
Azure Storage provides several types of storage, each with its unique features and use cases:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Blob storage: Blob storage is designed for storing unstructured data such as documents, images, videos, and audio files. It is ideal for use cases such as media storage, backup, and archive.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;File storage: File storage is a fully managed file share service that supports the SMB protocol. It is ideal for enterprise applications that require shared file storage.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Queue storage: Queue storage provides a reliable messaging solution for asynchronous communication between applications. It is ideal for decoupling workloads and ensuring reliable message delivery.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Table storage: Table storage is a NoSQL key-value store that can be used to store large amounts of structured data. It is ideal for use cases such as IoT data storage, logging, and analytics.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Azure Storage Features&lt;br&gt;
Azure Storage provides several features that make it a powerful and versatile storage platform:&lt;/p&gt;

&lt;p&gt;Scalability: Azure Storage is highly scalable and can be easily scaled up or down as per the storage needs of your applications.&lt;/p&gt;

&lt;p&gt;Security: Azure Storage provides several security features such as encryption, access control, and network security to protect your data.&lt;/p&gt;

&lt;p&gt;High availability: Azure Storage provides high availability and durability, ensuring that your data is always accessible.&lt;/p&gt;

&lt;p&gt;Cost-effective: Azure Storage offers a cost-effective pricing model that allows you to pay only for what you use.&lt;/p&gt;

&lt;p&gt;Azure Storage Example&lt;br&gt;
Let's consider an example of how Azure Blob Storage can be used to store and serve images for a website. In this scenario, the website is hosted on Azure Web Apps and needs to serve images to its users.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create an Azure Storage account: Start by creating an Azure Storage account and selecting the Blob storage type.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Upload images: Upload the images that need to be served to the users to the Blob storage account.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set permissions: Set the appropriate permissions on the Blob storage account to ensure that the images are accessible to the website.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Update website code: Update the website code to retrieve the images from the Blob storage account and serve them to the users.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By using Azure Blob Storage, you can easily store and serve images for your website without having to worry about the storage infrastructure.&lt;/p&gt;

</description>
      <category>cloudskills</category>
      <category>storage</category>
      <category>azure</category>
    </item>
    <item>
      <title>Skills a cloud engineers must have</title>
      <dc:creator>Sagar Bakshi</dc:creator>
      <pubDate>Sat, 25 Mar 2023 20:14:37 +0000</pubDate>
      <link>https://forem.com/sagarbakshi/skills-a-cloud-engineers-must-have-hlh</link>
      <guid>https://forem.com/sagarbakshi/skills-a-cloud-engineers-must-have-hlh</guid>
      <description>&lt;p&gt;Cloud computing has become an essential part of modern businesses, and cloud engineers play a crucial role in designing, building, and managing cloud infrastructure. If you're interested in pursuing a career as a cloud engineer, here are the skills that you should focus on developing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Cloud platforms: A cloud engineer should be familiar with at least one major cloud platform, such as AWS, Azure, or Google Cloud Platform. They should understand the different services offered by these platforms and be able to choose the appropriate ones for a given use case.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Networking: Networking is a critical aspect of cloud computing, and a cloud engineer should have a solid understanding of networking concepts, including routing, VPNs, load balancing, and firewalls.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Security: Security is a top priority in cloud computing, and a cloud engineer should have a strong knowledge of security best practices, including access control, encryption, and threat management.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Infrastructure automation: Automation is essential for efficiently managing cloud infrastructure, and a cloud engineer should be proficient in tools like Terraform, Ansible, or Puppet to automate infrastructure provisioning and deployment.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Scripting languages: A cloud engineer should have a good understanding of scripting languages like Python, Bash, or PowerShell to automate tasks, create custom scripts, and integrate with other tools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Containerization: Containerization is a key trend in cloud computing, and a cloud engineer should have experience working with containers, especially with Kubernetes, Docker, or other container orchestration platforms.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DevOps: A cloud engineer should be familiar with DevOps principles and practices, including continuous integration and continuous deployment (CI/CD), source control, and testing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Soft skills: Finally, a cloud engineer should have good communication skills, be able to work in a team environment, and have strong problem-solving and troubleshooting skills.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In conclusion, becoming a cloud engineer requires a mix of technical skills and soft skills. Focusing on the areas listed above can help you build a strong foundation for a successful career in cloud computing.&lt;/p&gt;

</description>
      <category>cloudskills</category>
    </item>
  </channel>
</rss>
