From 586704f48c690198b612e8b9d5772dc1bed85799 Mon Sep 17 00:00:00 2001 From: Dinesh Solanki <15937452+DineshSolanki@users.noreply.github.com> Date: Thu, 19 Oct 2023 21:14:02 +0530 Subject: [PATCH] Update overview.html --- gh-pages/overview.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gh-pages/overview.html b/gh-pages/overview.html index 93b62ff..9da98ed 100644 --- a/gh-pages/overview.html +++ b/gh-pages/overview.html @@ -1 +1 @@ - Overview | Help Instance

Help Instance Help

Overview

Samay is a Java library that provides automatic timezone handling for Spring Boot applications. It allows easy extraction and usage of timezone information from HTTP requests.

What is Samay?

Samay is designed to simplify timezone handling in Spring Boot web applications. It intercepts incoming HTTP requests, extracts the timezone from a custom header, stores it in a ThreadLocal variable, and makes it available throughout the request lifecycle.

This saves developers from having to manually extract and pass around timezone information in their application code. Samay handles this automatically via request interception and context propagation.

Some alternatives to Samay include:

  • Manually extracting timezone on every request

  • Passing timezone as a method parameter

  • Using session/cookie to store timezone

Samay provides a cleaner and more automated way to handle time zones.

Glossary

Request Interception - Process of intercepting an HTTP request before it reaches the target controller. Useful for cross-cutting concerns like logging, security, etc.

ThreadLocal — A variable that provides thread-level isolation. Stores different values per thread. Used to propagate context across layers.

Context Propagation - Passing request-specific data like user ID, timezone, etc across application layers to avoid plumbing everywhere.

Let me know if you would like me to expand or modify this overview section further.

Last modified: 19 October 2023
\ No newline at end of file + Overview | Help Instance

Help Instance Help

Overview

Samay is a Java library that provides automatic timezone handling for Spring Boot applications. It allows easy extraction and usage of timezone information from HTTP requests.

What is Samay?

Samay is designed to simplify timezone handling in Spring Boot web applications. It intercepts incoming HTTP requests, extracts the timezone from a custom header, stores it in a ThreadLocal variable, and makes it available throughout the request lifecycle.

This saves developers from having to manually extract and pass around timezone information in their application code. Samay handles this automatically via request interception and context propagation.

Some alternatives to Samay include:

  • Manually extracting timezone on every request

  • Passing timezone as a method parameter

  • Using session/cookie to store timezone

Samay provides a cleaner and more automated way to handle time zones.

Glossary

Request Interception - Process of intercepting an HTTP request before it reaches the target controller. Useful for cross-cutting concerns like logging, security, etc.

ThreadLocal — A variable that provides thread-level isolation. Stores different values per thread. Used to propagate context across layers.

Context Propagation - Passing request-specific data like user ID, timezone, etc across application layers to avoid plumbing everywhere.

Last modified: 19 October 2023
\ No newline at end of file