<?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>DEV Community: Rahul Kumar</title>
    <description>The latest articles on DEV Community by Rahul Kumar (@iamrahul).</description>
    <link>https://dev.to/iamrahul</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%2F666827%2F2aa2c366-af47-44f3-84b5-872292d0f39e.jpg</url>
      <title>DEV Community: Rahul Kumar</title>
      <link>https://dev.to/iamrahul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iamrahul"/>
    <language>en</language>
    <item>
      <title>Kubernetes or Cloud Foundry : Cloud-Native App Deployment</title>
      <dc:creator>Rahul Kumar</dc:creator>
      <pubDate>Tue, 17 May 2022 23:58:18 +0000</pubDate>
      <link>https://dev.to/iamrahul/kubernetes-or-cloud-foundry-cloud-native-app-deployment-512k</link>
      <guid>https://dev.to/iamrahul/kubernetes-or-cloud-foundry-cloud-native-app-deployment-512k</guid>
      <description>&lt;h2&gt;
  
  
  What should you choose :  Cloud Foundry or Kubernetes?
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;When building a microservices-based program from the bottom up, selecting an application deployment platform is critical. It will be your first step in establishing the process for updating and deploying your application code, whether you want to construct your platform on bare metal servers, IaaS or a comprehensive PaaS solution.&lt;br&gt;
Choosing the correct platform allows your application developers to spend more time developing new application features rather than packaging and deploying code each time a feature or bug fix is released.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. As App Deployment platform&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Cloud Foundry :&lt;/strong&gt; &lt;br&gt;
Cloud Foundry is a higher-level abstraction of cloud-native application deployment that shares capabilities with Kubernetes. As the platform's founders put it, &lt;br&gt;
&lt;code&gt;"You give it the software, and it takes care of the rest."&lt;/code&gt;&lt;br&gt;
It recognizes application requirements, creates the container, deploys it, scales it, links it to the network, and directs traffic to it. As a result, the developer may concentrate solely on the application code. As a result, Cloud Foundry claims that the application is the platform's primary currency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kubernetes :&lt;/strong&gt;&lt;br&gt;
How does it compare favorably against Kubernetes? Because the container is Kubernetes' fundamental unit of currency, it adds to the complexity of developers' job by requiring them to construct the container for the app and give other deployment requirements, whereas Cloud Foundry does not. In other words, Kubernetes conceals nothing from developers, allowing both developers and operators to engage with it in the same way, but Cloud Foundry differentiates between cloud operators and cloud developers, simplifying the latter's interface.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2.The ability to run the platform from anywhere&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;The second significant distinction is that, whereas Kubernetes may be difficult to deploy on your infrastructure, Cloud Foundry is designed to host workloads on any hardware, including on-premise, public cloud, and basic VMs! It also enables operators to move tasks between all available solutions in a matter of minutes, without having to modify the software.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;To summarize, Cloud Foundry works at a high degree of abstraction, providing a better level of efficiency to its users, particularly application developers, but with significant limits in terms of runtime customization. It's an excellent solution for new cloud-native apps and smaller teams who need to deploy often.&lt;br&gt;
Kubernetes, on the other hand, is a lower-level abstraction that can be used to develop your own customized deployment platform, giving you more options. However, it adds to your teams' workload, which might lead to a loss in production.&lt;/p&gt;
&lt;/blockquote&gt;



&lt;h2&gt;
  
  
  Kubernetes, Cloud Foundry or Both?
&lt;/h2&gt;

&lt;p&gt;With that in mind, why not combine the advantages of both systems? Because Kubernetes is designed to accommodate any workload, we can use it to run Cloud Foundry!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;There are two open-source projects (&lt;strong&gt;KubeCF&lt;/strong&gt; and &lt;strong&gt;cf-for-k8s&lt;/strong&gt;) that enable Cloud Foundry to execute workloads on the same K8s cluster as the Cloud Foundry platform. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Using a combination of BOSH and Kubernetes, the Cloud Foundry Container Runtime is then utilized to deliver workloads. It combines Kubernetes' customization capabilities with the CF platform's deployment and administration capabilities. It's all because to the great Project Eirini, which is still one of the Cloud Foundry Foundation's ongoing initiatives.&lt;/p&gt;

&lt;p&gt;As you can see, when it comes to cloud-native application deployment platforms, there is no one optimal choice. &lt;strong&gt;You may choose from a variety of ways depending on the complexity of your project, the size of your team, and other criteria.&lt;br&gt;
&lt;em&gt;Kubernetes is one of the most widely used systems in the world&lt;/em&gt;, and it can be utilized for almost any task. Cloud Foundry, on the other hand, is the ideal route to go if you have more generic needs and want to focus on your developers producing business value rather than worrying about deployment setup.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;You may also mix the benefits of both worlds by using Cloud Foundry installed directly on Kubernetes.&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Reference [to know more...] :
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://kubernetes.io"&gt;Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cloudfoundry.org"&gt;Cloud Foundry&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;The above blog is submitted as part of 'Devtron Blogathon 2022' - &lt;a href="https://devtron.ai/"&gt;https://devtron.ai/&lt;/a&gt;&lt;br&gt;
Check out Devtron's GitHub repo - &lt;a href="https://github.com/devtron-labs/devtron/"&gt;https://github.com/devtron-labs/devtron/&lt;/a&gt; and give a ⭐ to show your love &amp;amp; support.&lt;br&gt;
Follow Devtron on LinkedIn - &lt;a href="https://www.linkedin.com/company/devtron-labs/"&gt;https://www.linkedin.com/company/devtron-labs/&lt;/a&gt; and Twitter - &lt;a href="https://twitter.com/DevtronL/"&gt;https://twitter.com/DevtronL/&lt;/a&gt;, to keep yourself updated on this Open Source project.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>cloudfoundry</category>
      <category>cloudnative</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Error 404 : Page not Found</title>
      <dc:creator>Rahul Kumar</dc:creator>
      <pubDate>Wed, 14 Jul 2021 21:16:57 +0000</pubDate>
      <link>https://dev.to/iamrahul/error-404-page-not-found-5033</link>
      <guid>https://dev.to/iamrahul/error-404-page-not-found-5033</guid>
      <description>&lt;p&gt;&lt;strong&gt;W&lt;/strong&gt;hen you click on a link, but instead of arriving to the site you want, an error message appears, stating that the page you requested is unavailable. It should be something along the lines of '404 Not Found.'&lt;/p&gt;

&lt;h5&gt;
  
  
  A 404 error is an HTTP status code that indicates that the website's server does not have the page you were searching for.
&lt;/h5&gt;

&lt;p&gt;When website content is deleted or relocated to another URL, an error 404 message is commonly shown.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The 404 status code is the most common HTTP status code.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What are HTTP status codes?
&lt;/h2&gt;

&lt;p&gt;A server answer to a browser's request is an HTTP status code. When you visit a website, your browser makes a request to the server, which the server responds to with a three-digit code called the HTTP status code.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;These status codes represent a communication between your browser and the server over the Internet. They convey if things are fine😊, touch-and-go👍, or if something is wrong😕 between them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common HTTP status code classes:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5a2m8wds7fp58k6j0zfx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5a2m8wds7fp58k6j0zfx.png" alt="http status codes"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each three-digit status code starts with one of five integers, ranging from 1 to 5, and is written as 1xx or 5xx to signify status codes in that range. For example, 200, 301, 404, 500, and so on...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;100–199 - Informational responses: The server is thinking through the request.
200–299  - Successful responses: The request was successfully completed and the server gave the browser the expected response.
300–399  - Redirection: You got redirected somewhere else.
400–499  - Client errors: Page not found. The site or page couldn’t be reached. 
500–599  - Server errors:  A valid request was made by the client but the server failed to complete the request.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;HTTP Status Code 200 - OK&lt;/code&gt;&lt;br&gt;
The 200 (OK) status code indicates that the request has succeeded. This is your ideal status code for your normal, everyday, properly functioning page.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;HTTP Status Code 301 - Permanent Redirect&lt;/code&gt;&lt;br&gt;
A 301 redirect should be utilized any time one URL needs to be redirected to another permanently.&lt;br&gt;
Visitors and bots who come on that page will be sent to the new URL through a 301 redirect.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;HTTP Status Code 500 - Internal Server Error&lt;/code&gt;&lt;br&gt;
This status code indicates a server fault rather than a problem with pages missing or not found. A 500 error is a common server issue that will prevent visitors from accessing your website.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;HTTP 404 errors can decreases a website’s ranking and reputation.&lt;/strong&gt;&lt;br&gt;
Once the crawlers have determined that 404 codes are being returned for a large number of queries, they will proceed to the next step. This might result in a significant drop in the number of visitors to the website.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;👉&lt;a href="https://datatracker.ietf.org/doc/html/rfc7231#section-6.2.1" rel="noopener noreferrer"&gt;Read more here (RFC 7231)&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Getting bored😑&lt;br&gt;
Try this once :&lt;code&gt;https://http.cat/[status_code]&lt;/code&gt;&lt;br&gt;
For example : &lt;br&gt;
&lt;a href="https://http.cat/404" rel="noopener noreferrer"&gt;https://http.cat/404&lt;/a&gt;&lt;br&gt;
&lt;a href="https://http.cat/450" rel="noopener noreferrer"&gt;https://http.cat/450&lt;/a&gt;&lt;br&gt;
&lt;a href="https://http.cat/500" rel="noopener noreferrer"&gt;https://http.cat/500&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>404</category>
    </item>
  </channel>
</rss>
