Views

A database view is a subset of the database sorted and displayed in a particular way. For each view, we can control the row (by where condition) or column ( in select statement) to be shown. View mainly depends on database technologies. One doesn't have to extract the table from the main database. The developer can start it by creating a view and pointing code to the view. The benefits are it is the easiest to start and many databases support this concept. The only concern here is performance during updates. We can increase the performance using a materialized view. Again, it depends on the database support. As shown in the following screenshot, you can break one part of code as microservice and create a view on the database. Microservices use this view as a source to get and update data. Run this setup for a few days to verify its domain breakup knowledge:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset