Hello there everyone and welcome back to the podcast that's all about nothing other than data. The podcast is all about nothing. You've already done this bit before. There's about nothing other than data and beer.
Hooray! That's right. It's a renegade DB. I've already done that.
You have in a previous episode, you start with, wait, it's about nothing. Oh, you're becoming repetitive. Not unlike this podcast, cough data breaches. Everyone loves the name.
Nobody loves the database just you. In any case, we have for you today the highest availability of wonderful beer and data. No, you're going with Chris replication. Chris replication.
Multiple Chris publishers and Chris subscribers. No, no, because those are spoilers. No, I mustn't talk about those. So yes, as always, we're going to be talking about Chris.
Beer. Yes, and we're also going to be talking about Chris databases. And Chris, we're also going to be talking about today specifically. Database stuff.
It's all about replication. No, it's all about high availability in SQL Server. That replication. It's one of the things.
All right, all right. All right. But as always, we can't do so without beer. Yes.
That done those beer. Yes, it was. Well done. Yeah.
Very proud of you. Thanks. Now, fortunately, today's beer comes from our lovely producer, Louise. Yeah, unfortunately she can't be here today.
Yeah, she had a rather important meeting apparently. I don't know what's more important than this. No. Literally anything in her gender.
She's here in spirit. She is here in spirit. That would be a different kind of DBL though. Just lots of whiskey and very unfortunate podcast.
Yeah, we should do that once. Two hour run through. In cohere and bubbles. This is how you start up, get run to an emergency.
Wait, what? Yeah. I think that might just be a standard quality, to be honest. Now, today's beer though, comes from the lovely producer, Louise, who has brought for us some lovely Pike IPA.
And Pike IPA, for those of you who don't know, are based out of Seattle, Washington. Of course they are because of Pike Place. Yeah. Yeah.
No, got it eventually. Eventually. Yeah. Just twigged.
But yeah, we recently actually came back from sunny for this time of year, Seattle. Oh, did you? We did. Yes.
Adji Louise was with us when we went to past summit at the Washington State community. Very inclusive. Us you're using here. You didn't go.
No. What were you there for? So I was there for past summit. Very nice.
Which was lovely. I got to talk to lots of wonderful people about source control and database changes, masking data, sorts of wonderful things. I also delivered my session and got my fancy past speaker, T-shirt, which I love and definitely do not wear around the house every single time I get the opportunity to do so. I do.
But I got to do my session, building a masking plan, data protection by design, and by default, where I did lots of funky, power-shelly, data masking stuff. And got to show off how clever you are. Ah, I wish. But in any case, we've got this lovely Pike IPA and, hopefully for us, given that I often get stuck figuring out what the component elements are.
Sorry, sorry. Data protection and privacy check coming in. But Pike IPA, also known as Pipper. Yay!
Oh dear. Oh dear. Of course you would figure out a way to turn beer into data privacy legislation. In other case.
In other case. In other case. Oh! Nice.
Nice. Fun with Alkris. But yes, this one is a citrus tropical fruit malt flavoured IPA. It's a deep golden colour and apparently you should pair it with salty snacks, pizza, pasta, and days that end in Y.
But every day ends in Y, Chris. Wow. Wow. Wow.
Welcome to the Owen Wilson of podcasts. Wow. Data. Wow.
Right. Well, I'll tell you what. Let's go ahead and pour this and get into our DBL frame of mind. So let's go.
Here we go. Incads. So. Oh no!
It's gone everywhere. Oh no. There's the ballet all over the recording studio. Oh no.
Oh, it's everywhere. Oh, OK. Well, there's a... There is, um, definitely not beer on the microphone.
Louise, if you're listening to this, we definitely have not broken expensive recording equipment. Well, not really. It's all over. I'm already reasonably priced recording equipment.
I'm going to smell like beer all day. Yeah. Because it's of course 9am as we always usually record. Oh gosh.
Uh, right. Tactical Pause. Right. Untactical Pause.
OK. I just... Just about managed to clear away most of the beer, the mic definitely has a little bit of a stain going on. Oh no.
Oh, we're going to be in so much trouble. Oh, wow, never mind. Right. Let's, uh, let's try some beer, Chris.
Yeah. Woohoo. Yeah. Yeah.
Yeah. Yeah. So this is all I was drinking basically all through past summit, as well as water. Stay hydrated.
It's very important. But this beer is just so smooth and multi and delicious. And I really do wish that I had some pretzels right now. Yeah, but yeah.
I always wish I had pretzels. Oh, that was really nice. Constant state of being minus four pretzels. Yeah.
I think the way you described it pretty much was the bill. Golden Inkjada. Tastes pretty good. Well, it was the way they described it.
Well, yeah. I was giving you credit. Well, happily take that credit. Good job, Chris.
You read off the back of the can. Yeah. Go me. Oh, yeah.
Basically ready to be a solutions engineer. Yep. Oh my goodness, that's so good. Right.
That's what we can end the episode now. Lots of lip smacking, lots of beer. So why are we here again? Remind me of a redundant copy of me.
And that was the latency. This one. I'll take that one. Yeah.
Yeah. So today we're here to talk about high availability in SQL Server. It's something that both Chris and I come across on a regular basis. It's everyone always says to us, all about this.
What about this? What about this? What about that? Whilst it's not specifically to do with what we do, technically, would you say?
Yeah, although to be fair, not much is to do with what I do because I don't do anything. Well, you're my boss. So you just boss me around, right? Yeah.
Exactly. Cool. So we are here to talk about high availability because we do stumble across it quite often. And actually, it's quite funny.
The number of types of high availability solutions there are out there in particular for SQL Server. Maybe we could do high availability in other solutions as well. Because some are very similar, like replication, for instance. Yeah.
It's a good idea for a future episode. Yeah. This is an area that I will readily admit to not know much about. I know about the general formats.
And the reasons why. And but a lot of my knowledge has come from other data platforms, not SQL Server. Mm-hmm. Well, hopefully, by the time we leave, you'll be all the wiser for the most amazing variety of solutions there are out there.
I'm very excited. As am I. And I think it's probably a good idea to start off with, perhaps a little game. Oh.
Oh. I know you like games. Hang on. Let me just cover this so you can't see it.
All right. Okay. So I think it's probably a good idea to start out with a description of what high availability really means. Okay.
So availability is more around, well, kind of as it says on the tin, really making sure that a certain application or solution is available. Yeah. Yeah. So the idea of being.
If this is the level of knowledge, I think I'm pretty good. Yeah, exactly. So the idea being that if someone wants to, say, interact with our application, for instance, how can we ensure that the parts, the constituent parts of our application are constantly available, constantly working and that we're not going to end up with downtime? Is this a question?
No. Oh. No. No.
That's like the cards against humanity card B's, but with the question mark at the end of it. B's. B's. B's.
Um, B's. So the whole idea behind this is not having downtime. And the agreements that you make with your customers often refer to downtime or availability, depending on which kind of slot you want to put on it. Right.
Right. So you might agree with a customer to a certain SLA, service level agreement. Yeah. And I recently went to a wonderful talk by the marvelous Alex Anderson from prouler.io recently.
He gave a really great talk about our protection for availability. It was really, really cool, really good talk. If you ever get the chance, follow Alex. He's just brilliant.
But yeah, basically, he was highlighting about the whole at the very beginning, the old, what are nines? What are nines? Yes. So nines is how a lot of people measure availability.
Right. So I was watching a video recently where the person who was talking said, oh, I used to work on a database that was processing many billions of transactions. I think he said something like it was like $2.9 billion per day worth of transactions, which is pretty nice. And he then followed that up with, but the database, or the instance was only available 60% of the time.
Oh, that's awful. Yeah. I know. That's what I know.
That's the face I pulled. Anyway. Typically, we see people agree service levels and measure this kind of availability in nines. So for instance, 1.9 would be 90% availability.
Sure. Sure. So if you agree to 90% availability, that means that you can have 36.53 days per year where your system, your solution is down. Hmm.
OK. Yeah. So 90% or 1.9 system is more available than I am any given year. Yes.
Cool. 2.9's, 99%. And that means your solution can be down for a total of 3.65 days. And this isn't per incident, right?
This isn't, you can be down for 3.65 days and then the clock resets the next instance you get. The total time in a year. Exactly. Again, Alex really highlighted this in his talk.
So again, shameless plug. Go and find Alex Anderson on social medias and befriend him. He's wonderful. But then I thought I'd make you guess at what?
3 and 5 nines are respectively in a year. So it's 3.99. It's 99.9%. 99.9%.
So the 0.365 days. Damn. Oh my gosh. That 8.77 hours.
All right. A bit of a hard one there. 5 nines. 99.999%.
So if the other one was 0.365, then divide by 100 to get 0.0365 days. The year. Which is? What would you say?
So 8 to 9 hours. I hate that you're doing so. I voted by 100 would be, oh, that's going to be harder. Let's go with 90 hours is 540 minutes.
So I'd say about 5.4 minutes. Oh my gosh. 5.26 minutes. Oh, I hate you and your mathematical brain.
Yep. That sucks. This game was not as exciting as I thought it would be. I had a lot of fun.
Yeah, I could imagine that. I can't believe you did so well. That's it. Cancel DBL, cancel Christmas.
Yeah, you chose my special subject, maths. Yeah, good point. Did you do maths at university? Yep.
Oh. Oh. Oh. Oh.
So Chris, what is the capital of Ecuador? I think that's probably Peru. What? Oh.
Didn't study geography. OK, fair enough. OK, well, well done. Thanks.
Now I'm sad. Well, that's the Ecuador question about. Well, I just had to find something you couldn't answer. Yeah.
What is the capital of Ecuador? I don't know. I feel like I should know. Well, how about we go it?
Hey. There you go. Shame, as mentioned. So on a more serious note, there are some principles when it comes to architecting for high availability.
OK. OK. So there's three main principles, or so much as Wikipedia. I mean, reliable data sources.
So hang on. Go back to the basics. So my understanding then from what you just said, you want availability of X amount of time. So for me, that's two distinct areas.
One is disaster recovery. Yes. So if something goes wrong, you can fail over to another environment. Yes.
The other is for, I don't know how the best way to put it without just saying high availability is, which is where you have effectively two production environments, and you stream your bandwidth across it. You've stolen my thing. What's your thing? The things that I'm going to talk about.
Yeah, but this is just high level. You can go in more detail. Yeah, that point. So you get that kind of two-fold structure.
The interesting thing you've got to think about, though, is it's very easy to think about high availability and disaster recovery when it comes to, say, one particular part of the solution, like your web server, your SAN, your SQL server. Yeah. But the thing is, you've got a whole range of things that could go wrong, right? If someone can't access one thing that you provide, it could be any of the things behind it.
So high availability on your application server. High availability on your application server. High availability on everything. Everything.
DBA, what do you buy? High availability on your backups. High availability on your backups. I'm just going to repeat everything that you say now and make a whole publisher subscriber joke.
Anyway. You need to drop every 0.01 words as well. Percent of words. Well, I mean, now we're going to get on to like UDP versus TCP jokes.
Wait. Everyone can relate to that. Great. So TCP walks into a bar, sees another TCP packet, and says, do you want to hear a joke about TCP?
No one says, yes, I would like to hear a joke about TCP. And the first one says, OK, here's a joke about TCP. Lol. In any case, there's three main aspects to architecting for high availability.
OK. So the first is eliminate single points of failure. I think that's pretty straightforward. We can all agree on that.
Yeah. Anything that's going to be a single point of failure, get rid of it. Architect for multiple points of failure. The second is architect for reliable crossover.
So architect for the ease of moving over, because the actual architecting for high availability, i.e., fewer points of failure for your server. Load balancing. That's what I meant to say. OK.
Disaster recovery and load balancing. That's what I meant. Sorry, just came to me. Right.
So if you've got thousands of people wanting to use your app, then you distribute the load. Well, like when you've just been shopping, and you have a huge number of shopping bags, then you try to carry five in one hand so that you can open the door with your other hand. And then you realize that it's weighing you down, and the bags are cutting into your hands, like some kind of torturous device. And then you swap.
So you have two bags in your other hand, and then all of a sudden you can carry everything and unlock the door. Exactly. Like that except wife is carrying both the bags, and I'm unlocking the door with no bags. And this is where you get all of the tweets saying, why do you hate Rachel?
Oh, well, yeah, no, it's normally, I mean, I do the food shop. Because I know what's up. I'm all about that healthy living and also pretzels. Mainly pretzels.
But reliable crossover. So make sure that there is an ease of crossing over from one to the other. Because if your crossover is in itself a point of failure, well, then you're still going to have a bad time. Yeah, that's an interesting thought.
So you set up like a disaster recovery system, and you have something that is maybe listening. And it takes like nine hours to fail over. Bad. Yeah.
And the other one is detecting failures. So monitoring constantly, actually keeping an eye on the relationship between your various different servers and the other things. I'm being really careful not to spoil what I'm going to talk about, but it's so hard. Yeah, because you've got like three hours worth of content there.
Yeah, but it will come down in editing. Let's just hope I don't make an cut out some sort of word in the previous bit. I'm sure it will make. Well, oops.
Yes. I'll never let you get away with that again. Oh, you just wait. In any case, yeah, so it's important to Arctic for high availability because then we're able to provide our customers with the wonderful support and application that they've grown to know and love.
And then my, I don't know, to pull an example out of a hat, I wouldn't have to wait while they carry out like server maintenance on a thing that I use regularly. And it says, this service is going to be down between 3am and 7am. And it's like, that's exactly the time I want to buy a kibab. Why would you shut down my online banking?
Few points to take away there. Kibabs, good. Online banking bad. I struggled with fun kibab places that allow me to pay in anything other than cash.
So how are you transacting here? I'm blown away. You know, I just use Android Pay, actually. Yeah, like a regular pay.
You were the one who got me onto Android from iOS. Yes, I moved to Android. And it's the best thing that's ever happened to me. But you were the one who got me from iOS on Android and now he's Android Pay.
I realize I'm using hand motions there. Like I'm just being sassy. Yeah, he's doing the whole like one finger waggling. It has been a long day.
There's a lot of hit movements with someone sat down recording a podcast. That's the benefits of a weekly chair. In any case, moving swiftly on, I think it's probably about time. For the news.
No, just because that's your thing. Yeah. All right. Now we're going to talk about high availability and SQL server.
So some of the options that we have available to us. What options do we have, Chris? Well, gee, wait a second. I'm rustling papers.
As opposed to Dave of papers. I'm sorry. I'm sorry to everyone who listens for all of my bad. This is because he's got a friend called Russell.
I do have a friend called Russell. Yeah. There are like single digit numbers of people on the planet called Russell. And you know one of them.
I know three of them. That's amazing. My actual best friend in the world is called Russell. Hello, darkness.
My old friend. Oh, you're one of my best friends too, Chris. Thank you, Chris. As far as colleagues go, you're the best.
Thanks, Chris. Stop now. Stop. Right.
OK. Yes. So there are a few different options available. Wow, he's got really loud.
I'm sorry. There are a few options available in SQL server for high availability. Who would have thunk it? I've heard about some of these.
But well, you already mentioned one. They're done. Thunder stealing weirdo. How did you know my bad name?
Is that your new handle on Twitter? Thunder stealing weirdo. Yeah. Anyway, you'll see.
Give it. Give us the option. Yes. So OK, the first one, log shipping.
Oh, I've heard about that one. Yes. So basically, it's where you cut down a tree and then you put it on a boat and then just say it across the country. You know you spent too much time in Portland, Seattle.
Portland and Seattle were amazing. In the 1900s when Chicago San Francisco really needed wood. So there was a bit of a pause there. And if anyone realises there was a bit of a pause, I'm going to tell you for why there was a little bit of a pause at the end of Chris's amazing story about how San Francisco needed wood.
And that's because he put his foot against a power button on the computer that we are recording on. And then it started to shut down. But fortunately, because we were still using our recording software, I was able to cancel said shut down. Now, once I had saved where we were, what did you do then, Chris?
Well, I didn't think there was a power button. What do you mean you didn't think there was a power button there? You pressed it with your foot. I was missing the finest of how it happened.
And he actually shut down the computer. Thank goodness that we were able to save all that hard work. Well, he's not got the analogy about the elephants in there, right? Yeah, exactly.
All the pink elephants. What were you saying? Anyway, and also 1900s, I don't think it was right either. No.
So log shipping. Yeah. And let me just read the thing that I wrote down here that is definitely my own work. Yeah.
Wink, wink, wink, wink, wink, wink, wink, wink, wink, wink. Stop winking your work. So in log shipping, the source data is copied to the destination through log backup jobs. It's a database level technology.
So you have the primary server as the source. Yeah. And then you have the secondary server as the destination. Yeah.
And then you have an optional kind of monitor server, which will be effectively monitor this log shipping status. So the secondary service in this restoring mode, which is limited read only, which is fair enough. So effectively, you move the full backup of the database over and restore it onto the secondary, and then you schedule these transaction log backups. And you transfer and restore it, say, every hour.
Right. And then if the primary fails, you can move the secondary to multi-user mode and then reconnect. So you have almost like a failover. Frantiges.
So it's quite good for things like reporting, because you're actively moving some of the pain, some of the overhead across from your production server onto this secondary server. It's quite useful. The only problem is it's always out of date, depending on the restore frequency. So if the primary goes down, you are still going to be out of date.
You are still going to lose data potentially. So nice and simple and easy to set up. Yes. Log shipping the easiest effect.
Don't know me if you can't quite how often you do it. Yeah, exactly. And I believe log shipping is basically the earliest of all the HA technologies we're going to talk about today. Back in the old days.
Back in the old days of log shipping on SQL server. OK, what else? So then you've got replication. Now, replication is also an early option, but it's still very much in use today.
Log shipping is as well. So in replication, you've got the source data copied to the destination through replication agents. So it's an object-level technology. It's all about data.
The publisher is the source and the subscriber is the destination. And it's a way to distribute workloads. It's a really good way of distributing workloads. So you can also have the distributor as an optional kind of like you can have the monitor server with log shipping.
You can have this distributor and it stores replicated data for the subscriber. It's pretty good for copying and synchronizing data continuously. OK, there's multiple approaches. The good thing about replication is that you've got lots of different, potentially lots of different servers that can participate in this replication.
So you could do one to many. So replicate from one server to many subscribers. You could do many to one. It actually replicates multiple publishers to one subscriber.
And then you can have many to many and bidirectional as well. Oh. Yeah, so you can keep lots of things up to date, which means that you have all of these other servers that have got all of the respective data and everything. So I don't remember someone talking about cascade replication.
Or you replicate to one and then that replicates to another. Yeah. That's interesting because it would be almost like a publisher to a publisher to a subscriber. Yeah, it was a bit of a weird setup.
Interesting. Anyway, sorry. So advantages of that seem pretty similar. You've got the fact that you can, if you've got this one production server that you've got lots of people, lots of things connecting to.
Like reporting. Reporting's probably the most obvious beneficiary of this process where you replicate either constantly or at a set time from the publisher over to the subscriber. And then you're reporting your BI processes, SSIS, et cetera, at that replication or at the subscriber. And then that takes that workload, takes that overhead off of the production system, meaning that it can focus on say our OLTP process, whatever it is we've got hooked up to production.
But also downside. Danside can be pretty clunky. It's not always reliable. I've definitely experienced this.
Like it doesn't play well when it comes to looking at automated deployments or components in general. 100%. And the other thing is, for instance, you're not always sure that it's done it correctly. Yeah.
That seems like a big downside. Yeah. So I've definitely spoken to people in the past who use either Redgate tools or the Visual Studio Data Comparison tool to actually figure out if replication has worked by doing a data comparison. So yeah, for actual positive and negatives, replication seems like a reasonable way of doing things.
Whether I would use it now for high availability, I'm not convinced personally. Personal opinion, no one hate. Hashtag Chris for the win. This Chris, not that Chris.
Yes, Chris K for the win. Anyone. Chris, you for the unwind. So those are early options?
Early options. Yes. There is another early option. Well, it's third.
Early option. Yeah, but in terms of early option, in that it's been offered for quite some time, so you've got failover clustering. Yep. And that's been around for some time.
So you can have, oh, my brain has stopped working. So you've got a shared location that's used by both the primary and secondary servers. Yeah. OK.
So the shared storage, which can be the SAN, is a pretty good way of doing things. So you've got these two, you've got two nodes, potentially three, four nodes. I think you can have up to eight nodes. And Brent Ozar, I think, recommends that people stick to no more than three nodes in a failover cluster, which is fair enough.
Go Brent. But then you can, effectively, you have this one node, the primary node, and then a secondary node. And the active node is where the SQL services are running, where the actual instances, right? But the thing is, because they're utilizing this shared file location, the SAN, for instance, if something goes kablooey on the primary node, then the instance just can swap.
OK. But the same thing will point a failure on the actual file level. Yes. So if the SAN itself fails, then, yes, your databases are go, well, all your databases are go boom.
But that being said, there are definitely options for high availability with SAN storage as well. Makes sense. Yeah. Cool.
So you can move instances around. As it comes to the shared storage, you can have shared storage at least just for the system DBs, so the system stuff. But there are options for non-shared storage as well, which is, I think, pretty cool. And certainly, when we get to talk about always on availability groups, that's something I don't believe it uses clustering technology.
You have to have AGs on clusters. But they don't use the shared storage. In any case, when it comes to failover clustering, you can have an active passive relationship. So you can just have one node that's serving all the traffic, and then if anything happens, which is over or active active.
But you can have active active, which, again, referring to a, in fact, I think I'm referring to a blog that Kendra wrote. In any case, I think that in the blog that I read that might have been Kendra, actually, shout out to Kendra for being the most awesome, most awesome person ever. But I believe the post was talking about having active active as well, where you can effectively have the secondary node as almost like a quiet instance. So you take the databases that have the lowest load on them.
So a semi-active load. Yeah. And then put the quiet databases on there and have the really heavy ones over on the primary. And then the good thing is, you can use the app, you can use the active secondary node to almost be, like, I believe, what was the term used?
The coal mining. Canary. The canary, yeah, exactly. The coal mine canary effectively for testing updates.
And then you can practice, like, failing over. And there's a whole bunch of options there available. So yeah, tons on clustering, still a very important technology in use. Well, that's passive passive.
Like our approach to work. Like our approach to DBA. Wait, no, that's definitely active passive. Yeah, that's true.
It's the active. I'll let you figure that one out. The funny thing is, you can write T equals statements to effect back which one's the active passive node is possible. Yeah.
Also true with the help presenters. Yes, this is true. One of us is more responsive than the other. T.E.
So. Responsible, Chris. Responsible. You're responsible for everything.
Yes. So then you've got mirroring. Mirroring. Mirroring.
Mirroring. Mirroring. Yes. It's a ring that you hold up in front of your face, and then it reflects the other person's face.
You should definitely get one of those. Mirroring. Oh. How?
It's true. I've had this spot on my forehead for ages now, because that's where I scratch. What's the nose? Oh, that one.
I've scratched it. I think it's like scarred. Oh. Like from Lion King.
Anyway. It looks just like Harry Potter's scar, except not a lightning shape. So it's like, nah, nah, nah, nah, nah, nah, nah, nah, nah, nah. And now we've got a copyright data.
Oh. Sad. So mirroring is a disaster recovery and high availability technique, which involves two instances on the same or different machines, but typically on different machines. Right.
So you have one, so it can only be two, really. I mean, most of the time, 99.59% of the time. OK. 5.99% of the time is two.
6.60% of the time. Yes. And the other is the mirror. Right.
Fair enough. So there can also be a third acting as a witness, OK. Which, you know, drag it into court and they'll tell you about the mirroring. And it can be combined with other high availability solutions.
And that's interesting. But it sends a stream of active transaction log records to the mirror server as quickly as possible. OK. Just like throws that stuff over.
It's like, ah, ah, transaction log. So useful if you want things up to date. Yeah. Up to the minute.
So the difference between mirroring and replication, for instance, though, is that replication works at a logical level and mirroring works at the physical log record. OK. The only problem is mirroring has kind of been superseded. What by?
Always on availability groups. Always on availability groups. Yes. We don't always on availability groups.
So and Microsoft feel the need to specify this as well. But on their documentation page, it actually says, always on availability groups, otherwise abbreviated to AGs and not AOAGs. OK. Does OK.
Fair. But yes, mirroring is in maintenance mode only. So they will make fixes to it, but they will not improve. OK.
So it's in maintenance mode. Availability groups is the way forward done. Yes. But the problem is always on AGs, obviously, available, I think, 2012 and onwards.
Is there a sometimes on AG? I mean, that just sounds like me, but it's a sometimes on OG. Hey. Hey.
What's my life? We need to come A counter. And be here. Click.
Yeah. This episode had 20 A's. Now it just sounds like the count from Sesame Street. 1A.
Up, up, up, two A's. Up, up, up. Second copyright notice. Notice how I almost finished my beer, and you are like four sips in.
Yeah, it's called not having a drinking problem. It's Monday. Monday is my drinking day. It's 9 o'clock.
Anyway, always on AGs. So always on AGs are newer technology, slightly more complicated to set up. But the primary data is copied to the secondary through a network transactional basis. I love network transactional basis.
Basies. Basies? Count Basie? What?
Anyway. Anyway, so the primary replicas, the source, the availability of replicas are the destination. And it's not shared storage, like I mentioned earlier, with failover clustering. So you have groups of user databases that can fail over together.
So there are two modes within always on AGs. So you've got synchronous and asynchronous. So asynchronous is good for disaster recovery, because it's effectively taken off the staff and you've got is particularly good in a disaster recovery situation where you have servers that are logically separated by distance, like geographical separation. And synchronous is better for high availability, but at the price of increased latency, because of course you're firing everything across.
So the good thing is always on availability groups come with a huge massive list of additional benefits. Like what? Like they are endorsed by DBL. Really?