planetarium / market-service Goto Github PK
View Code? Open in Web Editor NEWshop product list service for nine chronicles
License: GNU Affero General Public License v3.0
shop product list service for nine chronicles
License: GNU Affero General Public License v3.0
신규 모델 싱크 테스트
현재 구조는 모든 목록을 돌면서 싱크하는 방식. ef core가 thread safe하지 않음. 결국 돌아야할 목록이 많아질수록 동기화 시간이 오래 걸리게 된다.
시도해볼만한 방법들
클라이언트입장에서의 갱신이 너무 오래걸립니다.
현재 decimal로 설정되있는 price, quantity(FavProduct 금액때문)의 타입을 int(또는 numeric)으로 변경합니다.
원래 단위는 BigInteger지만 json 전송시의 문제때문에 decimal 로 적용을 해놨는데, 실제 마켓 관련 액션에서는 금액에 관련된 부분에 소수점을 허용하지않고 정수타입만 지원하기때문에 타입을 단순화하는것이 유리합니다.
Since Equipment model has been changed (Exp field is added), market service should apply this change.
But currently no Exp data is shown in game UI, this is not in rush.
설정방식을 환경변수를 참조하도록 설정
실제 체인에서는 액션을 통해 product의 상태가 변경되면 해당 상태를 비우게 됩니다.(BencodxTypes.Null을 상태에 저장)
9c의 메일에서는 이런 상태를 비운 product의 정보를 띄워야해서 문제가 생기는데, 이 부분을 지원하기 위한 API를 추가해야합니다.
현재 양쪽에 중복으로 구현되있는 클라이언트와 통신으로 주고 받는 모델들을 정리해서 제공
postgres service 설정필요
DLL로 관리되고 있는 MarketSerivce.Response
대신 GraphQL 스키마와 API를 제공해서 클라이언트에서 사용가능하게 합니다.
FAV는 BigInteger를 쓰고 있지만 직렬화 문제때문에 서비스는 임시로 int 타입을 쓰고 있었습니다. 이 문제때문에 overflow exception이 발생하고 있는데 타입의 변경이 필요합니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.