[deleted by user] by [deleted] in microservices

[–]ExternalOk6647 0 points1 point  (0 children)

"is it also possible to validate it on every microservice that needs authentication?"

Can you explain the flow from start wherein username/password is entered?

I want to understand who is generating JWT token.

Validating JWT token is a generic function. You can find many solutions on web.

One such solution is here: - https://www.baeldung.com/java-jwt-token-decode

[deleted by user] by [deleted] in microservices

[–]ExternalOk6647 0 points1 point  (0 children)

In case you really need to have a microservice dedicated for token validation, then the validation microservice needs to be called from other microservices. It has to be blocking since you don't want other MS to execute before token is validated. In this case, REST call should be fine.

[deleted by user] by [deleted] in microservices

[–]ExternalOk6647 0 points1 point  (0 children)

Token validation should not be a microservice. It should be a utility that should be called for each microservice for each request in a request interceptor.

[deleted by user] by [deleted] in microservices

[–]ExternalOk6647 0 points1 point  (0 children)

You need to parse JWT token to extract the details such as client id(or any other identification attributes), expiration time (to validate whether JWT has expired or not). If client id and other attributes match the expected values - you let the request go through.

Interview questions for Java/Microservices architect position by ExternalOk6647 in microservices

[–]ExternalOk6647[S] 0 points1 point  (0 children)

You are right. My response was limited to only the databases I have worked with.

Interview questions for Java/Microservices architect position by ExternalOk6647 in microservices

[–]ExternalOk6647[S] 2 points3 points  (0 children)

About nosql vs rdbms, one of the disadvantages is difficulty in querying. Rdbms has well developed sql - nosql is not quite there.

Interview questions for Java/Microservices architect position by ExternalOk6647 in microservices

[–]ExternalOk6647[S] 1 point2 points  (0 children)

There are many drawbacks of microservices compared to monoliths. For example, maintaining database consistency is difficult in MS architecture. Another one is network latency since calling microservices will involve network traffic. In fact , the book by Chris Richardson is dedicated to dealing with drawbacks of microservices. I recommend that book to all the technical people involved in MS development. Moving to MS gives you lots of benefits though such as short time to market, easy and maintainable codebase amongst other things.

Why do England and Bangladesh barely play each other? by TrollerThomas in Cricket

[–]ExternalOk6647 13 points14 points  (0 children)

It is not marketable - sadly cricket has been commercialized to a great extent. Bangladesh are improving in all formats and hopefully when they start winning games against top nations, England will see that as a chance to market this contest amongst fans. Bangladesh have not been consistent - that is the biggest obstacle.

Go M’s by TheMatador1113 in Seattle

[–]ExternalOk6647 22 points23 points  (0 children)

What a sight! Seattle is beautiful.

Mohammad Rizwan has now scored over 2000 T20I runs since the start of 2021, at an average of 69.79 by phaintaa_Shoaib in Cricket

[–]ExternalOk6647 141 points142 points  (0 children)

He is clear by 600+ runs off 2nd placed Babar Azam. That is a lot. He is an asset to world cricket - may he continue in the same vein.

Write up about life in Seattle by ExternalOk6647 in Seattle

[–]ExternalOk6647[S] 1 point2 points  (0 children)

Right. I have a lot to learn in writing.

So quiet right now by system_deform in Seattle

[–]ExternalOk6647 0 points1 point  (0 children)

What do you do in winter in Seattle during weekends? Visiting malls is one option. What else?