1 00:00:01,230 --> 00:00:04,840 In this video Oregon do some initial setup of the Nats streaming server. 2 00:00:04,890 --> 00:00:09,570 I first want to give you just a couple of very high level notes on it and we're going to start to deploy 3 00:00:09,570 --> 00:00:13,890 it into our Cuban businesses cluster by writing as you'd guess a config file. 4 00:00:13,930 --> 00:00:14,210 Okay. 5 00:00:14,250 --> 00:00:15,340 So a couple notes here. 6 00:00:15,480 --> 00:00:20,850 So we're making use of something called Nats streaming server to share events across all the different 7 00:00:20,850 --> 00:00:23,130 services inside of application. 8 00:00:23,130 --> 00:00:29,870 You can find documentation for Nat streaming server at docks that Nat Scott Io it's all going to go 9 00:00:29,870 --> 00:00:31,280 there right now. 10 00:00:31,280 --> 00:00:33,310 Here's the documentation page. 11 00:00:33,500 --> 00:00:37,610 Now it's something that is extremely important for you to understand right from the get go. 12 00:00:37,610 --> 00:00:39,360 This is extremely important. 13 00:00:39,410 --> 00:00:44,630 Are going to see it terminology of simply Nats and Nats streaming server. 14 00:00:44,630 --> 00:00:50,660 These are two separate programs two different things and they behave pretty darn differently. 15 00:00:50,660 --> 00:00:57,440 We are not making use of nets NASA is a very simple basic implementation of event sharing Nats streaming 16 00:00:57,440 --> 00:00:59,910 server is built on top of Nats. 17 00:00:59,960 --> 00:01:05,530 It is a more advanced and more full of feature implementation that we are going to be making use of. 18 00:01:05,600 --> 00:01:11,210 So in all the documentation that we look at in all the deployment instructions everything we always 19 00:01:11,210 --> 00:01:16,170 want to be making sure that we're taking a look at something that says Nats streaming server. 20 00:01:16,340 --> 00:01:18,510 Hundred percent of the time. 21 00:01:18,560 --> 00:01:23,120 Having said that throughout the remainder of this course and particularly in this section whenever I 22 00:01:23,120 --> 00:01:28,010 want to refer to that streaming server I'm going to very frequently say simply Nats just because saying 23 00:01:28,010 --> 00:01:32,160 that streaming server over and over and over again is going to be really annoying. 24 00:01:32,240 --> 00:01:36,380 So for you just keep in mind that we're always going to want to look at documentation around Nat streaming 25 00:01:36,380 --> 00:01:41,630 server and this applies even to the official documentation once we come over here on the left hand side 26 00:01:41,630 --> 00:01:46,520 we're going to see stuff that says Nats concepts developing with Nats and so on that is all references 27 00:01:46,520 --> 00:01:52,790 to just plain NATS which we're not using we are using Nats streaming server so the documentation we 28 00:01:52,790 --> 00:01:53,420 want to look at. 29 00:01:53,450 --> 00:02:00,090 We're going to scroll down on the left hand side and eventually find Nats streaming concepts. 30 00:02:00,090 --> 00:02:05,000 These are the documentation sections we care about is developing with that streaming. 31 00:02:05,080 --> 00:02:07,250 Yep we care about that and here's Nats streaming server. 32 00:02:07,260 --> 00:02:07,450 Yep. 33 00:02:07,470 --> 00:02:08,190 We care about that. 34 00:02:08,730 --> 00:02:10,980 So again make sure you are not reading about Nats. 35 00:02:10,980 --> 00:02:15,010 Make sure you are reading about Nats streaming server. 36 00:02:15,260 --> 00:02:21,720 So that mind some many different features of Nat streaming are going to be absolutely tremendous in 37 00:02:21,730 --> 00:02:25,870 how we eventually start to implement some of our different services and particularly how we share data 38 00:02:25,900 --> 00:02:26,700 between them. 39 00:02:26,760 --> 00:02:30,610 So in the coming videos we're going to get Nat streaming server up and running inside of our carbonated 40 00:02:30,640 --> 00:02:31,300 cluster. 41 00:02:31,330 --> 00:02:35,830 We're going to create a very small little project where we are just writing out some no J.S. code to 42 00:02:35,830 --> 00:02:40,570 work with Nat streaming server directly so we can get a better idea of how it behaves how it shares 43 00:02:40,570 --> 00:02:46,180 information around how he vents get persisted how we can somehow synchronize new services that we add 44 00:02:46,180 --> 00:02:48,760 into our application insulin. 45 00:02:48,870 --> 00:02:53,740 We are going to run Nat streaming server inside of our Cuban cities cluster by using the official Docker 46 00:02:53,740 --> 00:02:56,140 image called Nats streaming. 47 00:02:56,230 --> 00:02:59,800 Let's go take a look at the image documentation on Docker Hub right now. 48 00:02:59,860 --> 00:03:04,750 Just we have a better idea of how we can get the thing up and running so inside of a second browser 49 00:03:04,750 --> 00:03:11,200 tab I'm going to navigate to hub Docker at dot com and then once here I will search for NATS at the 50 00:03:11,200 --> 00:03:18,540 top and again we're going to see it one image called Nats and another called Nats streaming. 51 00:03:18,540 --> 00:03:21,210 So again we want to make sure we are always going for NATS. 52 00:03:21,240 --> 00:03:28,380 Streaming then on this page we can take a look at some documentation the documentation I really want 53 00:03:28,380 --> 00:03:37,470 to point out to you is at the very very bottom of this page though specifically the command line options. 54 00:03:37,570 --> 00:03:42,190 These are a ton of different options that we can provide when we create our deployment. 55 00:03:42,220 --> 00:03:47,210 I'll show you how we stick these in and these are going to customize Howard Nordstrom's over behaves. 56 00:03:47,210 --> 00:03:51,740 Some of these options are really important for us to set and in some cases we definitely do not want 57 00:03:51,740 --> 00:03:54,480 to be using the default settings. 58 00:03:54,580 --> 00:03:54,890 All right. 59 00:03:54,920 --> 00:03:57,350 So in this video we've really established three things. 60 00:03:57,350 --> 00:04:01,180 Number one we're using that streaming server not Nats. 61 00:04:01,210 --> 00:04:05,500 Number two we're going to take a look at the Nats documentation and when we do we're going to make sure 62 00:04:05,500 --> 00:04:08,590 we take a look at these streaming documentation. 63 00:04:08,590 --> 00:04:13,510 And number three we're going to run that streaming server inside of our carbonated cluster by deploying 64 00:04:13,510 --> 00:04:19,210 it like any other service in our app and I guess number three point five or so. 65 00:04:19,260 --> 00:04:20,860 We definitely want to keep this page open. 66 00:04:20,880 --> 00:04:25,470 The Docker Hub documentation on the nat streaming image so we can take a look at the different command 67 00:04:25,470 --> 00:04:27,820 line options that are available to us. 68 00:04:27,960 --> 00:04:28,280 All right. 69 00:04:28,300 --> 00:04:29,310 It's a quick pause right here. 70 00:04:29,310 --> 00:04:33,780 We're going to start to deploy this into our cluster in the next video by writing a deployment.