Featured Post

Python Set Operations Explained: From Theory to Real-Time Applications

Image
A  set  in Python is an unordered collection of unique elements. It is useful when storing distinct values and performing operations like union, intersection, or difference. Real-Time Example: Removing Duplicate Customer Emails in a Marketing Campaign Imagine you are working on an email marketing campaign for your company. You have a list of customer emails, but some are duplicated. Using a set , you can remove duplicates efficiently before sending emails. Code Example: # List of customer emails (some duplicates) customer_emails = [ "alice@example.com" , "bob@example.com" , "charlie@example.com" , "alice@example.com" , "david@example.com" , "bob@example.com" ] # Convert list to a set to remove duplicates unique_emails = set (customer_emails) # Convert back to a list (if needed) unique_email_list = list (unique_emails) # Print the unique emails print ( "Unique customer emails:" , unique_email_list) Ou...

AWS Block Vs Object Storage Top Differences

In AWS, Block and Object are two types of storage. I have given differences between these two. Why because storage is a prime concept in the cloud environment.

Object Vs Block Storage

Why are these names different? Because these two are different storage types - Object and Block.


Object Storage


  • Object means it is a single object. You are not dividing here.
  • In the context of AWS, object storage helps your file to store as-is. How big it does not matter.
  • Let your file size is 10MB. Then, it saves as a 10 MB file.
  • What happens when you update a 30MB file. It deletes the old object and creates a brand new one.
  • For small changes, you need to update the whole file. So, it utilizes a lot of resources.
  • Object storage is much better for big files and very few changes.
  • AWS manages object storage.
  • AWS has full control over Object storage.


Block Storage


  • Block storage divides your file into blocks.
  • You have selected a block size of 512 bytes. If you want to upload a 10MB file, it then divides the whole file into 20 blocks.
  • When you want to update a single character, it updates only that Block. It will not touch other blocks.
  • You can save network and bandwidth use in Block storage.
  • When the changes are more, and you want to update very often, then Block storage is much better.
  • In Block storage volumes are mountable.
  • AWS has no visibility on blocks inside of Block storage.
  • It has visibility only on Block volumes.

Keep Reading

Comments

Popular posts from this blog

SQL Query: 3 Methods for Calculating Cumulative SUM

Big Data: Top Cloud Computing Interview Questions (1 of 4)

5 SQL Queries That Popularly Used in Data Analysis