Enabling Sticky Sessions with an AWS Application Load Balancer (ALB) | AWS Tutorial

  Рет қаралды 9,058

Tiny Technical Tutorials

Tiny Technical Tutorials

Күн бұрын

Пікірлер: 59
@msizinkosi3481
@msizinkosi3481 Ай бұрын
I love you 😊, after trolling through google trying to find a simple explanation without success the angels directed me to you and we are married from now on, subscribed.
@vibales
@vibales Жыл бұрын
Wow this information is pure gold, hope more people can watch this.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Me too! 😄 Thanks so much for watching and for the nice comment!
@saipriya8114
@saipriya8114 3 ай бұрын
After watching so many videos in you tube. you were the best in explanation.
@TinyTechnicalTutorials
@TinyTechnicalTutorials 3 ай бұрын
Yay! I'm so glad it helped. Thanks for watching and for such a nice comment!! 🙏🤓🌟
@tanujagpsty7578
@tanujagpsty7578 2 жыл бұрын
You deserve more subscribers and viewers - loved your content
@TinyTechnicalTutorials
@TinyTechnicalTutorials 2 жыл бұрын
Thank you, tanuja! Really appreciate that! :)
@dragonmax2000
@dragonmax2000 2 жыл бұрын
+1 from me :) Totally awesome content; please keep at it.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
You're very kind! Thank you so much! :)
@kanappilly
@kanappilly Жыл бұрын
simple and powerful tutorial
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Thanks so much! 😊
@ShivamAggarwal-n8t
@ShivamAggarwal-n8t Жыл бұрын
this so helpful...get straight in my head....thnks a ton
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Awesome! I'm so glad! Thanks for watching! 😊
@NityaGuptanitya
@NityaGuptanitya Жыл бұрын
Very helpful, it saved my time, thank you
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
You're very welcome! Thanks for watching!
@chandraprakashdwivedi1
@chandraprakashdwivedi1 Жыл бұрын
it is realy quick and to the point appreciate it :)
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Awesome! I'm so glad it helped! :)
@bulliraj-j9r
@bulliraj-j9r 11 ай бұрын
Simple and precise up to point with great example. Love your videos
@TinyTechnicalTutorials
@TinyTechnicalTutorials 11 ай бұрын
I appreciate that! Thanks for supporting the channel! 🤓🙏🌟
@nehalverma1444
@nehalverma1444 2 жыл бұрын
I love your videos. Thankyou so much Tiny!
@TinyTechnicalTutorials
@TinyTechnicalTutorials 2 жыл бұрын
I'm so glad! Thanks for the nice comment!
@mrcharm767
@mrcharm767 Жыл бұрын
please dont stop with aws .. love ur videos
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Awww, thanks so much, Syed! I plan to keep going! :)
@mrcharm767
@mrcharm767 Жыл бұрын
@@TinyTechnicalTutorials more power to u 🔥
@mrcharm767
@mrcharm767 Жыл бұрын
Wil u b able to upload realtime projects with AWS?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Hey Syed! Can you clarify? Are you talking about doing live KZbin sessions for AWS projects? Want to make sure I understand the question! :)
@mrcharm767
@mrcharm767 Жыл бұрын
@@TinyTechnicalTutorials yes basically AWS projects .. going from a small level to a good level where a person can say he is experienced in AWS after following ur tutorials .. if possible u can include docker and kubernetes.. if ur doing that I'll be fully committed to follow all those playlists u explain excellent I'm sure others wil also follow
@ejyanezpvideo
@ejyanezpvideo 11 ай бұрын
easy and to the point.😊
@TinyTechnicalTutorials
@TinyTechnicalTutorials 11 ай бұрын
Yay! That's what I was going for! Thanks for watching! 🙏🌟🤓
@arkarwmh
@arkarwmh Жыл бұрын
Hi Tina, my "target groups" don't even have "Attributes" tab shown. When I go by the "Actions" > "Edit attributes" from the dropdown menu, the popup box has "Stickiness" section but only "on/off" checkbox is inside. The stickiness "types" are entirely missing. (And the ELB itself has "Cross-zone load balancing" option enabled, even if that was the case)
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Hey Ark - So sorry for the delay on this. It looks like there have been some small UI changes, but the main "stickiness" options should still be there. I grabbed some screenshots here if this helps? drive.google.com/file/d/1G6JGhI6UVxlcdg-kqh9FyPNaoxU2e49Z/view?usp=share_link
@amitpadgaonkar8830
@amitpadgaonkar8830 Жыл бұрын
What a simple, clean and awesome looking presentation...What do you use to create it? Powerpoint (with some addons) or something else?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Thanks for the nice comment, Amit! 😊 Yeah, it's just PowerPoint, with some animations. Nothing too fancy.
@amitpadgaonkar8830
@amitpadgaonkar8830 Жыл бұрын
@@TinyTechnicalTutorials Thats amazing eh!! Thanks from Canada.
@kinal37
@kinal37 7 ай бұрын
Can we make that default stickyness cookies to non-persistent by update expire date to zero?
@TinyTechnicalTutorials
@TinyTechnicalTutorials 7 ай бұрын
Hi Kinal! 👋 If you make the default cookies non-persistent, I'm wondering if you really need sticky sessions? Do you want requests to go to the same instance or the default round-robin approach?
@ankitagarwal6014
@ankitagarwal6014 4 ай бұрын
What if my instances scale in and out? will it still maintain the stickiness?
@TinyTechnicalTutorials
@TinyTechnicalTutorials 4 ай бұрын
Hi Ankit! 👋 Sorry for the delayed response. If you're still looking for an answer, maybe this will help? SCALING OUT (Adding Instances) -New Instances: When new instances are added to the pool due to scaling out, they start receiving new traffic. However, existing sessions (those already stickied to other instances) are not affected. Only new sessions can be directed to the new instances. -Sticky Sessions: Existing sticky sessions will continue to route to the same instances they were initially directed to, unless those instances are terminated or fail. SCALING IN (REMOVING INSTANCES) -Removing Instances: When instances are removed from the pool due to scaling in, this can affect sticky sessions. If an instance that is handling sticky sessions is terminated: --The sessions that were stickied to that instance will be interrupted. --The next time the client sends a request, the load balancer will select a new instance based on the current load balancing algorithm, and a new sticky session will start with the new instance. -Session Persistence: The key point is that sticky sessions do not migrate. If the instance to which they are stickied is removed, those sessions do not maintain their state but are rather reset and will need to re-establish on a new instance.
@subhashkr8143
@subhashkr8143 Жыл бұрын
If there are multiple application server and sticky session off the sso stops working . How can we enable SSO with sticky session off
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Hi subhash! 😊 By default, sticky sessions are off, so in theory, shouldn't be affecting anything unless you enabled them. Also, sticky sessions are meant to save state within a session/application, not to be used for authentication across applications. But maybe I'm misunderstanding the question? 😊
@Pranith35
@Pranith35 Жыл бұрын
Thanks for sharing the video. I was able to achieve the sticky session with AWS using a load balancer generated cookie. I am using ALB for navigating TCP requests to target groups. But I am facing issue with browser based application as I am unable to pass the cookie in headers section in websocket requests. Can you please suggest an alternative for achieving the stickyness with browser based applications
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Hi Pranith! 😊 Sorry for the delayed response. Were you able to sort this out? I haven't tried this with web sockets, but according to AWS, they're inherently sticky so you shouldn't need to implement anything? docs.aws.amazon.com/prescriptive-guidance/latest/load-balancer-stickiness/options.html
@ykuldeep
@ykuldeep Жыл бұрын
I can't see option to "Edit Attributes" but "Edit Load Balancer Attributes" and clicking that doesn't show the options you are using. Is it dependent on region?
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Hi Kuldeep! Make sure you're editing the attributes for the target group, not the load balancer itself. I think that's probably the issue. 😊
@ykuldeep
@ykuldeep Жыл бұрын
@@TinyTechnicalTutorials Thank you for the pin point help. I found it.
@YourExcellency-gv3hl
@YourExcellency-gv3hl Жыл бұрын
Loved the video. Could you please share the Dockerfile script? I trying to create Docker image with "Hello World This is IP". So far no luck. Thank you in advance.
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Thank you, Your Excellency! :D I think you're talking about the User Data script that installs a web server and an index.html page? I put it into a Google Doc for you here: docs.google.com/document/d/1s8iNjZkDwq42fnpM-AeE27F1FEtbRYP24RicUi0VIbk/edit?usp=sharing. Hope that helps!
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
And to get the IP address, in that script, update "$(hostname -f)" to "$(hostname -i)"
@YourExcellency-gv3hl
@YourExcellency-gv3hl Жыл бұрын
Thank you for your quick response. I appreciate it. In the video, you take the DNS record from load balancer and paste it into the browser. And you have the output that says "Hello World This is ip-172.31.22.245. internal, How I can have the same output?
@YourExcellency-gv3hl
@YourExcellency-gv3hl Жыл бұрын
I was creating load balancer for ECS Fargate
@TinyTechnicalTutorials
@TinyTechnicalTutorials Жыл бұрын
Oh, gotcha. In that video, I was load balancing between EC2 instances, and used the User Data script to do the "hello world." I haven't done that with containers in ECS before, but I think this might get you started with the Dockerfile script? docs.aws.amazon.com/AmazonECS/latest/userguide/create-container-image.html. Or at least that should get you the static "Hello world" index.html page. Loading in a variable for IP address seems to be a bit more complicated. I found this example that displays hostname, using a Python script to get it (towards the end of the page): stackify.com/docker-tutorial/. Hope that sort of helps?
@edgardejesusmendozaortegon7655
@edgardejesusmendozaortegon7655 11 ай бұрын
😍
@TinyTechnicalTutorials
@TinyTechnicalTutorials 10 ай бұрын
😊
Simple Queue Service (SQS) Basics | AWS Cloud Computing Tutorial for Beginners
10:46
Tiny Technical Tutorials
Рет қаралды 12 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 65 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 17 МЛН
What is Sticky Sessions in the EC2 Load Balancer and how to use it
9:13
Amazon/AWS VPC (Virtual Private Cloud) Basics | VPC Tutorial | AWS for Beginners
9:50
Top 6 Load Balancing Algorithms Every Developer Should Know
5:18
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 65 МЛН