Giter VIP home page Giter VIP logo

bmf-tech-client's Introduction

bmf-tech-client's People

Contributors

bmf-san avatar

Watchers

 avatar

bmf-tech-client's Issues

ホームの改修

カテゴリ別最新記事、投稿数の多いタグなどブログの分析レポートのような形を出せるとどんな記事が書かれているか?どんな記事があるか?といったことが伝わりやすいかも。
集計APIっぽいものが必要になるかも。

debug flagを追加したい

debug用(pprof)のendpointの制御のためにdebug flagを追加したい。

debug flagを有効にするためには、pyroscopeの為に公開していたエンドポイントだったが、publicなのは良くないので、アクセス制御が必要。

CIにimage pushのジョブを追加する

手動でimage pushしているのでjobに設定したい。

以下のような感じでimage tagを切りたい。
masterにmerge→latest
tagリリース→tag
ブランチ→ブランチ名

問題なければgobel-api、gobel-client-example、gobel-admin-client-exampleにissueを切って横展開したい。

エラーページのレスポンスヘッダの指定が怪しい

概要

エラーページを返すプレゼンターでのレスポンスヘッダー設定が上手くできなていないぽい。(多分、net/httpのWriteの仕様上、設定後にstatus code 200で上書きされてしまっているような感じな気がする・・)

2023/08/23 14:57:16 http: superfluous response.WriteHeader call from github.com/bmf-san/bmf-tech-client/app/presenter.(*Presenter).Error (error.go:33)

対応

  • 再現、原因特定
  • 修正

og-imageの設定

Todo

  • og-imageの選定
  • og-imageのストレージ検討
  • og-imageの配信方法検討
  • og-imageの設定

APIのリトライ設計と実装

APIのリトライ設計と実装。

  • Request timeout
    • Round Tripperが使えそう?
      • Round Tripperはhttp clientの制御層的(ミドルウェア)な感じ。特定のルーティングに対して制御したいなら自前middleware。
  • リトライ回数の制御

投げ銭機能

Webサイト上に投げ銭機能をつけたい。ワンコイン程度を支払える投げ銭ボタン。

TODO

実現方法の検討から。

Trace IDをリバースプロキシサーバーから受け取る

clientで発行しているが、プロキシから発行されたものを受け取ってcontextに仕込みたい。
https://github.com/bmf-san/bmf-tech-client/blob/master/app/logger/logger.go

gobel-api側も同様に発行しているが、gobel-api側にはプロキシから受け取ったものをheaderに仕込んで渡したい。api側は同様にcontextに仕込む。
https://github.com/bmf-san/gobel-api/blob/master/app/infrastructure/logger.go

といった感じにすれば、プロキシからバックエンド(bmf-tech-client、gobel-api)へのリクエストをトレーシングできるはず・・

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.