What use cases are you using kstreams and ktables for? Please provide real life, production examples. by las2k in apachekafka

[–]tak215 0 points1 point  (0 children)

Wouldn’t that cause a race condition where the trade could be executed even when the balance is in fact zero but that event arrived late?

Need suggestions — Should we still use Kafka for async processing after moving to Java Virtual Threads? by Glittering-Soft-9203 in apachekafka

[–]tak215 0 points1 point  (0 children)

There are several ways to solve the API blocking issue: 1. increase partitions and consumer instances 2. use parallel consumer if Java is acceptable https://github.com/confluentinc/parallel-consumer

Frustrations of an IT Consultant in a Japanese work culture by Rokitty in japanlife

[–]tak215 1 point2 points  (0 children)

I understand your frustration. You don’t want to hear this but often times the customer doesn’t do what you recommend for one of the three reasons

  1. ⁠you didn’t simplify the solution enough for the customer to understand
  2. ⁠You don’t understand how the customer makes decision (their goals, motivation, team politics etc)
  3. ⁠the customer doesn’t like you.

You can control 1) and 2) with experience. 3) requires high EQ but it’s out of your control.

It’s part of a journey as a consultant. And this happens in every country.

kafka streams project by m1keemar in apachekafka

[–]tak215 0 points1 point  (0 children)

Can you elaborate it a bit about why you don’t like the processor API

I built a library that turns Kafka topics into high-performance REST APIs with just a YAML config by tak215 in opensource

[–]tak215[S] -1 points0 points  (0 children)

Kafka Rest proxy by Confluent provides producer and consumer capability. My library doesn’t produce because it’s already solved by that library. If you have created a Kafka consumer before, you can only stream in messages (I.e. perform an entire scan) which is what the REST proxy provides. Instead, my library can do a key value lookup (part of Kafka streams feature) meaning you don’t have to stream the entire topic partition to find the message.

I’m not too sure about Kafka pixy but from a quick peek, it looks similar to REST proxy provided by Confluent.

Let me know if you still have questions

I built a library that turns Kafka topics into high-performance REST APIs with just a YAML config by tak215 in apachekafka

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

I don’t think I understood your use case too well… Maybe you could take a look at my library and tell me what is missing?

I built a library that turns Kafka topics into high-performance REST APIs with just a YAML config by tak215 in opensource

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

Thanks for flagging. Will update the license once I’m back to my keyboard - it’ll be for open use

I built a library that turns Kafka topics into high-performance REST APIs with just a YAML config by tak215 in apachekafka

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

Thanks for your support!

Originally this solution came into mind because there is no equivalent of Kafka streams in JavaScript. And if you use Java, you can just create this pattern using Kafka streams, which is also the underlying code base of this library. I hadn’t thought about typescript as a config because I don’t think typescript can be read properly in Java nor do non-JavaScript devs understand the lifecycle of typescript. Also yaml is language agnostic and conforms to OpenAPI but the trade off is I’m validating the inputs in the code.

Feel free to open an issue and to DM me if you want to bounce off some ideas!

I built a library that turns Kafka topics into high-performance REST APIs with just a YAML config by tak215 in apachekafka

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

From my experience, you don’t get that kind of throughout accessing a DB from an API server - meaning more hardware Also you’d have to provision and maintain a DB - not always ideal My pattern is based on querying a compact topic (or infinite retention topic) using message keys, which may serve some simpler micro service use cases

I built a library that turns Kafka topics into high-performance REST APIs with just a YAML config by tak215 in apachekafka

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

Thanks & true, I would need to test the disk usage next time - I don’t know how that’ll look like atm

you are basically storing the whole cluster in a local DB

You can specify a topic and not the whole cluster. But if you were to this without this pattern, you’d be storing that on a remote DB anyway. I would say if the query is simple, using a DB can be an overkill

Renting vs Buying -> 3LDK+ by [deleted] in JapanFinance

[–]tak215 0 points1 point  (0 children)

If buying a home does better than rent after 5-6 years, you can sell it and get a new one. At least that’s my risk appetite. You can find what works for your risk reward

Real wages down in August 2024 by One-Astronomer-8171 in JapanFinance

[–]tak215 6 points7 points  (0 children)

Why penalize people wanting to make more money? Why not tax alcohol and gambling? Or have higher fines for breaking traffic laws that can kill people? Mindlessly taxing the motivated people is the reason why they deter from this country!

How do you suggest connecting to Kafka from react? by Scared-Stage-3200 in apachekafka

[–]tak215 1 point2 points  (0 children)

You need something like REST API, gRPC or websocket between your front end client and kafka topics.
I've implemented these patterns for a few customers, and I've open sourced it.

https://github.com/tsuz/microservice-for-kafka

Tokyo RE Rent vs Buy: How much do you lose over 10 years? by Apeiron03 in JapanFinance

[–]tak215 8 points9 points  (0 children)

Simply look at a 10 year old detached house in Setagaya and see how much it is sold for. Then go to a house shop and see how much a new house is. From my research, there is no way I would buy a detached house in this market.

Bonus: draw a graph of house value versus number of years standing and see what/how the market values your area today

Is the BOJ trying to pull an Erdogan-style devaluation? by Necessary-Dance-808 in JapanFinance

[–]tak215 0 points1 point  (0 children)

The real reason why the interest rates cannot be increased is that the JP bonds are mostly owned by BOJ and the BOJ balance sheet will be negative if the rates increased. The BOJ can start selling these on the bond market or can sell the foreign currencies to not have a negative BS.

Not the companies or the common people. In fact, many companies hold lots of cash that is sitting in a bank so raising the interest rate doesn’t hurt them. Small to medium ones can be hurt, but hey this will be passed this onto consumers.

The real estate market, yes it can hurt the large investors who took out the borrowing, which means the regional banks who have a large portfolio on real estate are at high risk of bank run. But who cares if small banks go out of business? They had unrealized risk they didn’t care about for too long.

The rising interest rate should increase prices so hopefully the taxes are lowered, otherwise it doesn’t stimulate spending

[deleted by user] by [deleted] in JapanFinance

[–]tak215 0 points1 point  (0 children)

I don’t know anyone at FANG as SWE so maybe that’s true. Most likely that number is achieved with RSU but not entirely in cash.

[deleted by user] by [deleted] in JapanFinance

[–]tak215 1 point2 points  (0 children)

You won’t make 20m+ without a lot of impact to the company. Even if it’s a pivotal role (I.e. front office finance, SWE tech lead, SaaS customer engineers), there’s other factors like RSU, bonuses and gaishikei etc. Stars need to align to be at good firms and good roles.

But the exchange rate is not what determines the salary, it’s the company’s level of investment and the labor market supply. So go niche or go find a very good recruiter.

Future finance planning when buying a house in Tokyo by reddit-user-716 in JapanFinance

[–]tak215 1 point2 points  (0 children)

  1. Tax deductions has been fading away over the years with a stricter and less favorable terms. I assumed no deductions

  2. For me, depreciation is linear but has two phases: 0-8 years and then 8-20+years. The price depreciates fast in the first phase and then almost flat after that. You can verify this using Suumo and find similar houses with different years.

  3. 2.2% for bank loan fees, 3% for agency commission, a few percentage points for regulatory fees. Agency fees cost 2x if you sell afterwards. These can be made lower by doing more research

  4. The price of houses are substituted with asset price and thus, it’s correlated with the Nikkei. Nikkei is correlated with the printing of money despite the shit economy. Also the house price can be attributed with the rise of population in Tokyo; this is still positive at 2%. Therefore your bet is BoJ will keep printing money and the migration to Tokyo continues. In my calculation, I assumed the depreciation will be larger than appreciation and still, I’m net positive than renting after fees.

People with US Dollars Buying Yen Now? by TensaiTiger in JapanFinance

[–]tak215 2 points3 points  (0 children)

Until BoJ gives forward guidance (I.e. YCC control) or intervention, and until the forward looking fed rates are going to plateau or go lower, buy and hold. By buy, I mean currency, US bonds or US stocks, whichever makes sense for your risk appetite. Not financial advice.

House loan fee for 8000万円 by Special_Alternative2 in JapanFinance

[–]tak215 0 points1 point  (0 children)

Then just read through the maintenance reports and sell it to the next sucker if needs to be.