Comments (4)
Partition your grains some other way, to avoid a hot-spot.
from microdot.
I have a grain that gets the token, it is only related to the tenant. When the tenant's customer enters the system, he must obtain the current tenant's token to know which one is the customer. The token is refreshed every 2 hours. Also, only 24 times a day is allowed. Customers may access up to 1,000 reqeust/s. Of course, if direct webapi, write a service that calls the token, there is redis. It's easy to get and store. But now how to implement all microdot-based microservices?
from microdot.
Not sure I understood the issue. Typically you'll authenticate requests and validate tokens before entering your microservices cloud, in some API gateway. If you do want to authenticate requests in a micro-service, you can perform that in the stateless service grain, which has multiple instances (typically one per cpu core, on each node) so it shouldn't be a bottleneck.
from microdot.
thanks.
from microdot.
Related Issues (20)
- questions/discussions HOT 36
- .NET Core 2.0? HOT 14
- how to use consul in microdot? HOT 2
- Does it load balance? HOT 1
- Error CS8002: Referenced assembly 'Gigya.ServiceContract, Version=2.5.5.0, Culture=neutral, PublicKeyToken=null' does not have a strong name. HOT 10
- Do you have a plan to add wiki pages? HOT 1
- About the value of ConsulEndPoint.HostName HOT 1
- Spelling Mistake in description HOT 1
- Lack of Documentation HOT 5
- how to publish on docker HOT 1
- Status on .NET Core HOT 3
- Help with inventory sample
- ServiceProxyProvider HOT 1
- Cannot build Microdot Solution HOT 1
- Is this project still maintained HOT 4
- [rl-assigned_teams-2] Violation against OSS Rules of Play
- [rl-assigned_teams-3] Violation against OSS Rules of Play
- [rl-reuse_tool-1] Violation against OSS Rules of Play
- Cannot build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microdot.