Having a layer 2 solution in blockchain is an important thing. This has been the case in the last few years where many projects have created their own layer 2 solution instead of having everything on the main blockchain itself. Having a layer 2 helps in many aspects like scalability, efficiency in terms of transaction speed, cost reduction, etc. This can be done on many blockchains. There should be some basic support available on the blockchain and if it is available, layer 2 solutions can be made available.
One of the biggest reasons why someone should think about using a layer 2 solution is because it will reduce the spamming on the main blockchain. This applies mostly to gaming applications. There is a high chance that games might need multiple events happening. It is also necessary that these events have to be faster so that the gaming experience is seamless. Having them on the main blockchain directly can make things slow and it would also be considered as spamming the main chain. Some aspects of the games can still go in as transactions on the chain but it is good to have other things handled internally in layer 2. This way the efficiency can be improved.

Game asset management
Currently, most of the games have their assets on layer 2 of the blockchain. Hive is the best example for that because it has Hive Engine and pretty much all the assets are stored inside Hive Engine and this is a layer 2 blockchain built and managed by the main chain. WAX has everything on their main chain itself but there are supporting libraries and code that would help in building the data in the format we want from the main blockchain. There are also a few other gaming platforms that keep their game assets on the blockchain but handle the microtransactions in their layer two. This way layer 2 can also be kept private and most of the important things alone can be kept for public view.
Game events on layer 2
Game events are mostly the microtransactions that happen inside the game. For example, if a player is moving from one map to another map, it need not necessarily have to be on the chain. It can be handled in layer 2 and the outcome alone can be synced with the blockchain and that too only if required. Some games have now moved their game events to their respective databases or layer 2 and have only the important and primary events on the blockchain that are essential to be handed on the blockchain. Initially, many games started with having everything on top of blockchain but things have changed now.

Logging on layer 2
There were also a few projects that started logging their project activities on a chain with the help of microtransactions. Though this facility is available, it is advisable to move the logging part to layer 2 because it is also considered as spamming the chain. This type of data is going to be sitting on a blockchain forever. Reducing spamming helps in keeping the blockchain clean and easily scalable. Most of the logging can happen on layer 2 and it can be related to the blockchain if required with the help of transaction ID.
If you like what I'm doing on Hive, you can vote me as a witness with the links below.
Vote @balaz as a Hive Witness
Vote @kanibot as a Hive Engine Witness





