Skip to main content

Featured post

Python For Loop increment Tricky Example

In this post, I have explained tricky for loop example in Python. The usage of FOR LOOP is to create loops. How many times the loop will execute you may supply in the input.

My Project is to get each character from the input String. I use for loop to achieve this.
Tricky FOR LOOP Examples Explained different for loop examples.
1. Python For Loop Syntax using Variable or Array >> for valuein variable
Python For Loop Example >> myName = 'srinimf'

>> for valuein myName
...        print(value)

The result is as follows:
s
r
i
n
i
m
f
2. Python For Loop With '1' to '10' or 'n'for(i=1;i<=10;i++)<loopbody> The above for loop useful to create definite loop. The maximum loops are '10'. You can write your logic for each value in Python.

This is one of the tricky and most popular example.
3. How does a Python For Loop works a Flowchart

The 'letter' contains ValuestateName is an Array or VariableAfter For Loop you can use BODY s…

Block storage vs object storage real differences

Interesting questions, I am giving on the two different types of storage popular in Amazon aws. Those are Block and Object.

Object vs Block Storage in AWS

Why these names are different. You need to understand storage available in AWS. You alreday know that AWS is leading provider in cloud computing.
object vs block storage

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 is does not matter.
  • Suppose, your file size is 10MB, it stores as 10 MB file.
  • What happens when you update a 30MB file, simply, it deletes old object and create a brand new object.
  • Even, for small change, you need to update whole file. So, it utlilizes lot of resources. 
  • Object storage is much better for big file and very few changes.
  • The object storage is well managed by AWS .
  • AWS has full control over Object storage.

Block Storage

  • Block storage divides your file into blocks
  • You have selected a block size as 512 bytes, then you want to upload 10MB file, it then, divides the whole file to 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.

References

  • Video on AWS storage

 

Comments

Most Viewed

Hyperledger Fabric Real Interview Questions Read Today

I am practicing Hyperledger. This is one of the top listed blockchains. This architecture follows R3 Corda specifications. Sharing the interview questions with you that I have prepared for my interview.

Though Ethereum leads in the real-time applications. The latest Hyperledger version is now ready for production applications. It has now become stable for production applications.
The Hyperledger now backed by IBM. But, it is still an open source. These interview questions help you to read quickly. The below set of interview questions help you like a tutorial on Hyperledger fabric. Hyperledger Fabric Interview Questions1). What are Nodes?
In Hyperledger the communication entities are called Nodes.

2). What are the three different types of Nodes?
- Client Node
- Peer Node
- Order Node
The Client node initiates transactions. The peer node commits the transaction. The order node guarantees the delivery.

3). What is Channel?
A channel in Hyperledger is the subnet of the main blockchain. You c…