Matthew Blewitt (@matthewblewitt) header
Matthew Blewitt (@matthewblewitt) profile picture
Leeds, UK
Joined November 2010
Photo by Matthew Blewitt (@matthewblewitt)Photo by Matthew Blewitt (@matthewblewitt)Photo by Matthew Blewitt (@matthewblewitt)Photo by Matthew Blewitt (@matthewblewitt)Photo by Matthew Blewitt (@matthewblewitt)Photo by Matthew Blewitt (@matthewblewitt)
Matthew Blewitt retweeted
Alright, check this out! I'm going to build a custom dashboard with supabase auth and a custom theme by "piecing together blocks from the Web". 1/n - Let's start by adding the dashboard block from shadcn/ui:
71
150
28
2,414
247,358
Matthew Blewitt retweeted
SSO (Single Sign-On) explained. SSO can be thought of as a master key to open all different locks.ย It allows a user to log in to different systems using a single set of credentials. In a time where we are accessing more applications than ever before, this is a big help to mitigate password fatigue and streamlines user experience. To fully understand the SSO process, ๐—น๐—ฒ๐˜โ€™๐˜€ ๐˜๐—ฎ๐—ธ๐—ฒ ๐—ฎ ๐—น๐—ผ๐—ผ๐—ธ ๐—ฎ๐˜ ๐—ต๐—ผ๐˜„ ๐—ฎ ๐˜‚๐˜€๐—ฒ๐—ฟ ๐˜„๐—ผ๐˜‚๐—น๐—ฑ ๐—น๐—ผ๐—ด ๐—ถ๐—ป๐˜๐—ผ ๐—Ÿ๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—œ๐—ป ๐˜‚๐˜€๐—ถ๐—ป๐—ด ๐—š๐—ผ๐—ผ๐—ด๐—น๐—ฒ ๐—ฎ๐˜€ ๐˜๐—ต๐—ฒ ๐—ถ๐—ฑ๐—ฒ๐—ป๐˜๐—ถ๐˜๐˜† ๐—ฝ๐—ฟ๐—ผ๐˜ƒ๐—ถ๐—ฑ๐—ฒ๐—ฟ: ๐Ÿญ) ๐—จ๐˜€๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—พ๐˜‚๐—ฒ๐˜€๐˜๐˜€ ๐—ฎ๐—ฐ๐—ฐ๐—ฒ๐˜€๐˜€ First, the user would attempt to access the Service Provider (LinkedIn). At this point, a user would be presented with login options, and in this example, they would select "Sign in with Google". ๐Ÿฎ) ๐—”๐˜‚๐˜๐—ต๐—ฒ๐—ป๐˜๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฟ๐—ฒ๐—พ๐˜‚๐—ฒ๐˜€๐˜ From here, the Service Provider (LinkedIn) will redirect the user to the Identity Provider (Google) with an authentication request. ๐Ÿฏ) ๐—œ๐—ฑ๐—ฃ ๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ๐˜€ ๐—ณ๐—ผ๐—ฟ ๐—ฎ๐—ฐ๐˜๐—ถ๐˜ƒ๐—ฒ ๐˜€๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป Once the Identity Provider (Google) has received the request, it will check for an active session. If it doesn't find one, authentication will be requested. ๐Ÿฐ) ๐—จ๐˜€๐—ฒ๐—ฟ ๐˜€๐˜‚๐—ฏ๐—บ๐—ถ๐˜๐˜€ ๐—ฐ๐—ฟ๐—ฒ๐—ฑ๐—ฒ๐—ป๐˜๐—ถ๐—ฎ๐—น๐˜€ At this stage, the user will submit their login credentials (username and password) to the Identity Provider (IdP). ๐Ÿฑ) ๐—œ๐—ฑ๐—ฃ ๐˜ƒ๐—ฒ๐—ฟ๐—ถ๐—ณ๐—ถ๐—ฒ๐˜€ ๐—ฐ๐—ฟ๐—ฒ๐—ฑ๐—ฒ๐—ป๐˜๐—ถ๐—ฎ๐—น๐˜€ The Identity Provider will then verify the submitted credentials against its User Directory (database). If the credentials are correct, the IdP will create an authentication token or assertion. ๐Ÿฒ) ๐—œ๐—ฑ๐—ฃ ๐˜€๐—ฒ๐—ป๐—ฑ๐˜€ ๐˜๐—ผ๐—ธ๐—ฒ๐—ป ๐˜๐—ผ ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐˜ƒ๐—ถ๐—ฑ๐—ฒ๐—ฟ Once the token or assertion has been created, the IdP sends it back to the Service Provider confirming the user's identity. The user is now authenticated and can access the Service Provier (LinkedIn). ๐Ÿณ) ๐—”๐—ฐ๐—ฐ๐—ฒ๐˜€๐˜€ ๐—ด๐—ฟ๐—ฎ๐—ป๐˜๐—ฒ๐—ฑ ๐˜‚๐˜€๐—ถ๐—ป๐—ด ๐—ฒ๐˜…๐—ถ๐˜€๐˜๐—ถ๐—ป๐—ด ๐˜€๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป Since the Identity Provider has established a session, when the user goes to access a different Service Provider (eg; GitHub), they won't need to re-enter their credentials. Future service providers will request authentication from the Identity Provider, recognize the existing session, and grant access to the user based on the previously authenticated session. SSO workflows like the above operate on SSO protocols, which are a set of rules that govern how the IdP and SP communicate and trust each other. Common protocols include Security Assertion Markup Language (SAML), OpenID Connect, and OAuth. ~~~ A big thank you to our partner Postman who keeps our content free to the community. Last year Postman released long-awaited features that make API authentication much easier. Check it out: drp.li/api-authentication-z7โ€ฆ
7
324
1,178
62,562
๐—ฆ๐˜๐—ฎ๐—ฐ๐—ธ ๐—ข๐˜ƒ๐—ฒ๐—ฟ๐—ณ๐—น๐—ผ๐˜„ ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ ๐—œ๐˜€ ๐—ก๐—ผ๐˜ ๐—ช๐—ต๐—ฎ๐˜ ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฒ๐—ฎ๐—ป ๐—œ๐˜ ๐—œ๐˜€ In the recent interview with Scott Hanselman, ๐—ฅ๐—ผ๐—ฏ๐—ฒ๐—ฟ๐˜๐—ฎ ๐—”๐—ฟ๐—ฐ๐—ผ๐˜ƒ๐—ฒ๐—ฟ๐—ฑ๐—ฒ, ๐—›๐—ฒ๐—ฎ๐—ฑ ๐—ข๐—ณ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—ฎ๐˜ ๐—ฆ๐˜๐—ฎ๐—ฐ๐—ธ ๐—ข๐˜ƒ๐—ฒ๐—ฟ๐—ณ๐—น๐—ผ๐˜„, revealed the story about the architecture of Stack Overflow. They handle more than 6000 requests per second, 2 billion page views per month, and they manage to render a page in about 12 milliseconds. If we think about it a bit, we could imagine they use some kind of ๐—บ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฐ๐—ฒ ๐˜€๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป ๐˜๐—ต๐—ฎ๐˜ ๐—ฟ๐˜‚๐—ป๐˜€ ๐—ถ๐—ป ๐˜๐—ต๐—ฒ ๐—–๐—น๐—ผ๐˜‚๐—ฑ ๐˜„๐—ถ๐˜๐—ต ๐—ž๐˜‚๐—ฏ๐—ฒ๐—ฟ๐—ป๐—ฒ๐˜๐—ฒ๐˜€. But the story is a bit different. Their solution is 15 years old, and it is a ๐—ฏ๐—ถ๐—ด ๐—บ๐—ผ๐—ป๐—ผ๐—น๐—ถ๐˜๐—ต๐—ถ๐—ฐ ๐—ฎ๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฟ๐˜‚๐—ป๐—ป๐—ถ๐—ป๐—ด ๐—ผ๐—ป-๐—ฝ๐—ฟ๐—ฒ๐—บ๐—ถ๐˜€๐—ฒ๐˜€. It is actually ๐—ฎ ๐˜€๐—ถ๐—ป๐—ด๐—น๐—ฒ ๐—ฎ๐—ฝ๐—ฝ on IIS, which runs 200 sites. This single app is running on nine web servers and a single SQL Server (with the addition of one hot standby). They also use ๐˜๐˜„๐—ผ ๐—น๐—ฒ๐˜ƒ๐—ฒ๐—น๐˜€ ๐—ผ๐—ณ ๐—ฐ๐—ฎ๐—ฐ๐—ต๐—ฒ, one on SQL Server with large RAM (1.5TB), where they have 30% of DB access in RAM and also they use two Redis servers (master and replica). Besides this, they have 3 tag engine servers and 3 Elastic search servers, which are used for 34 million daily searches. All this is handled by a ๐˜๐—ฒ๐—ฎ๐—บ ๐—ผ๐—ณ ๐Ÿฑ๐Ÿฌ ๐—ฒ๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐˜€, who manage to ๐—ฑ๐—ฒ๐—ฝ๐—น๐—ผ๐˜† ๐˜๐—ผ ๐—ฝ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐˜๐—ถ๐—ผ๐—ป ๐—ถ๐—ป ๐Ÿฐ ๐—บ๐—ถ๐—ป๐˜€ several times daily. Their ๐—ณ๐˜‚๐—น๐—น ๐˜๐—ฒ๐—ฐ๐—ต ๐˜€๐˜๐—ฎ๐—ฐ๐—ธ is: ๐Ÿ”น C# + ASP. NET MVC ๐Ÿ”น Dapper ORM ๐Ÿ”น StaeckExchange Redis ๐Ÿ”น MiniProfiler ๐Ÿ”น Jil JSON Deseliazier ๐Ÿ”น Exceptional logger for SQL ๐Ÿ”น Sigil, a .Net CIL generation helper (for when C# isnโ€™t fast enough) ๐Ÿ”น NetGain, a high-performance web socket server ๐Ÿ”น Opserver, monitoring dashboard polling most systems and feeding from Orion, Bosun, or WMI. ๐Ÿ”น Bosun, backend monitoring system, written in Go Check the full interview in the comments. #softwareengineering #programming #developers #softwarearchitecture #softwaredesign
8
115
2
622
56,940
Matthew Blewitt retweeted
I just launched CloudCatalog! An open source tool to help you document your AWS architectures. ๐Ÿ”Ž Discover resources ๐Ÿ“„ Document resources ๐Ÿ‘ฅ Assign owners โšก๏ธ Powered by markdown ๐Ÿคฉ And more... If you find it useful, a retweet would be awesome! โ™ฅ๏ธ๐ŸŒŽ cloudcatalog.dev/
3
37
1
130
13,576
Matthew Blewitt retweeted
Check this out! @heitor_lessa shares his latest thoughts on the lambdalith vs single-purposed function debate. It's interesting to see how his views have evolved over the years. Give it a watch and let us know what you think! youtube.com/watch?v=Pj7Gvl0Vโ€ฆ
2
10
1
43
9,069
Nice to take a step back at look at the big picture youtube.com/watch?v=nWTvXbQHโ€ฆ Chris Lattner: The Future of Computing and Programming Languages | Lex Fridman Podcast #131
2021 will mark my 10 years in software development. In these trying times if you're considering a new direction and have ever had any interest in working with software give me shout and we can sort a zoom.
1
3
17
1
161
Matthew Blewitt retweeted
Am I too late with this?
67
1,064
79
6,673
Matthew Blewitt retweeted
Watch Vue creator @evanyou's live keynote from Vue Global 2020 where he announces the official release of Vue 3. buff.ly/32RhB52 #vuejs @vuejsamsterdam #frontenddeveloperlove
11
40
Shifted to this 6 months back out of necessity on a big project. Never looked back
Sttooooop telling people to organize their apps like: /components/ Feature /utils/ feature Every company has to undo this shit at some point when it gets impossible to manage and turn it into: /feature/ Component util /feature/ Component util
Using option and shift with cursor keys in @code is magic. Option+Cursor moves the line up and down - including proper indentation (see end of video). Option+Shift+Cursor copies the line(s) above or below. Getting used to this made me so much more effective.
4
10
1
77
Matthew Blewitt retweeted
Totally normal things happening on the Upper West Side
733
2,586
1,078
15,339
When the Senior Developer arrives to fix the bug...
206
9,607
654
33,102
Matthew Blewitt retweeted
Choose death
392
6,884
717
40,045
168 AWS services in 2 minutes. *inhales*
245
3,413
826
10,508
When you're raging about reading shitty code, only to find out it was you 7 months ago. ๐Ÿ˜ณ
3
Matthew Blewitt retweeted
This was 13 years ago. The turning point. I was broke as hell, jobless, fresh out of drug rehab with a new kid. I just started learning to code, but had no clue where I was going in life. I still had a feeling that everything would be ok. Always try and be hopeful for the future
266
737
95
6,808
Matthew Blewitt retweeted
Opposing corner radial gradients look softer than angled linear gradients: #CSS background-image: radial-gradient( circle at top right, cyan, transparent ), radial-gradient( circle at bottom left, deeppink, transparent ) ; play codepen.io/argyleink/pen/ExKโ€ฆ
19
209
7
1,269