Learn how AFA Försäkring transformed development procedures, optimized live performance, and halved deployment time across a system of 70 servers and 400 databases managing $24 billion of assets.
“we were manually scripting out objects across different environments, which caused downtime at deployment.”
wholly owned by sweden's labor market parties, afa försäkring (afa insurance) provides a range of insurance policies and financial support to over four million employees in both the public and private sector. covering incapacity for work due to sickness, work injury, shortage of work, death, and parental leave, it manages assets of approximately sek 200 billion (us$24 billion).
behind the scenes, five development teams manage around 70 servers and 400 databases on the microsoft platform alone, and look after two online systems handling up to 130,000 logins per week.
九天娱乐keeping all of that technology performing at optimum efficiency is the biggest challenge for software architect, thomas johansson, and his team. already in the process of upgrading to sql server 2016 to take advantage of features like in-memory oltp and dynamic data masking, he wanted to look at ways of replacing manual processes and introducing automation to database deployments.
九天娱乐“we introduced comparison tools initially to solve the issues around inconsistent environments.”
九天娱乐afa försäkring started working with redgate tools originally to resolve conflicts between its development, testing, pre-production/acceptance, and production environments. manually scripting out objects was very slow and inefficient, and some were invariably missed which caused downtime during deployments.
"the first tool we adopted from redgate was sql compare," says thomas johansson. "it helped us create simple comparisons between the databases in their different states and automatically generate the upgrade script. our whole process became much faster and less error-prone because sql compare doesn’t miss any objects."
not long after these initial changes, thomas and the team at afa försäkring realized they were missing out by not having database version control in place. while it was standard practice for application code, they felt they were lagging behind by not adopting the same approach for managing database changes.
九天娱乐redgate sql source control was put in place to provide rollback options, one central source of truth that all developers have access to, and ultimately a record of all the changes and a way to quickly rebuild a database.
“we had a flavor of the timesavings automation tools offer, and wanted to include deployments as well.”
九天娱乐having taken the first steps to actively managing the lifecycle of their databases, the team wanted to go even further and automate the deployment process. they had already chosen the popular automation deployment tool for .net applications, octopus deploy, and decided to include database deployments as well.
redgate once again stepped in, this time with dlm automation (now sql change automation), another tool in the sql toolbelt, which plugs into release management tools like octopus deploy, teamcity, and team foundation server.
九天娱乐a working prototype quickly demonstrated how the solution could be rolled out across the pre-production and production environments, and the final implementation has transformed the way the development teams work. every check-in to sql source control triggers an automated continuous integration process, so any issues are caught early. if everything builds as expected, changes are automatically promoted across environments, including production.
with deployments happening in development rather than operations, it speeds up the entire process – and has freed up the production database administrator (dba), who now works on optimizing performance instead of handling time-intense and error-prone manual deployments.
九天娱乐“we're now deploying at a much higher frequency than before, and have doubled the deployments to production.”
九天娱乐as well as increasing the number of deployments, the team at afa försäkring have seen substantial time savings, freeing up the equivalent of an additional team member.
九天娱乐thanks to the sql toolbelt, they also work more efficiently. providing an end-to-end solution for managing the database lifecycle, it contains all of the development and administration tools necessary to optimize sql server. alongside sql compare and sql source control, for example, the team uses sql prompt which provides enhanced intellisense-style coding and refactoring and lets developers write and format sql much more quickly.
九天娱乐now that deployments are streamlined and the dba can spend time managing performance optimization, the team have also adopted sql monitor. as thomas johansson concludes: "sql monitor provides us with the information we need to make performance improvements. perhaps more importantly, it also alerts us to any problems, so we can address them before they become issues for users."