MICROSERVICE SINGLE RESPONSIBILITY
- a microservice should only be responsible in doing only one domain
Single Source of Truth
- Every piece of information in a microservice should be managed authoritatively by a single service
Implementation Cost
- What the project/organization's budget
SuperTokens
npx create-supertokens-app@latest
Add validations for security
import re
def filter_payloads(string):
xss_pattern = re.compile(r'<|>|javascript:|on\w+\s*=|alert\(|script\s*>', re.IGNORECASE)
sql_pattern = re.compile(r'SELECT|UPDATE|DELETE|INSERT|DROP|--|#', re.IGNORECASE)
filtered_string = re.sub(xss_pattern, '', string)
filtered_string = re.sub(sql_pattern, '', filtered_string)
return filtered_string
- Authentication & Authorization in Microservice Architectures