<commit_before>---
title: Performance and Authentication
date: 2018-10-13 08:37:23 -0400
draft: true

---
<commit_msg>Update from Forestry.io - Updated performance-and-authentication.md<commit_after>---
title: Performance and Authentication
date: 2018-10-13 08:37:23 -0400
description: Authentication, and how it affects performance.
vendor: YouTube
video_id: lncyIkCDoBU
related_tools:
- tool/netlify-functions.md
- tool/cloudflare.md
related_content: []
weight: ''

---
<NAME> (https://twitter.com/futuregerald) discusses authentication, and how it affects performance. He compares using session cookies vs JWT (JSON Web Tokens) tokens, and the benefits of JWT which can be used to authenticate requests and pass data on the frontend, on the CDN edge, in functions, and on third party servers, without having to make round trips back to your database for each request.
{'fraction_non_alphanumeric': 0.08735632183908046, 'fraction_numerical': 0.041379310344827586, 'mean_word_length': 4.885135135135135, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2551145', 'n_tokens_mistral': 273, 'n_tokens_neox': 241, 'n_words': 102}