MOPCON
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    在 Google 地圖上大喊:「我上新聞了!」 === ###### tags: `2017`, `R3` ##### 位置: R3 ##### 講者: [吳政賢(OA)](https://goo.gl/24gF4v) {%slideshare 貼這裡xxxx/yyyy %} --- [TOC] * 投影片 * [Apple keynote 版本](https://cdn.ioa.tw/mopcon2017/mopcon.key) * [Microsoft PowerPoint 版本](https://cdn.ioa.tw/mopcon2017/mopcon.pptx) * [Microsoft PowerPoint 2003 之前版本](https://cdn.ioa.tw/mopcon2017/mopcon.ppt) * [PDF 版本](https://cdn.ioa.tw/mopcon2017/mopcon.pdt) * [線上網頁版](https://cdn.ioa.tw/mopcon2017/html/index.html) ## 講者自介 * [OA Wu](https://goo.gl/24gF4v) 的 [GitHub](https://github.com/comdan66) * 終於看到 [LiveCoding.tw](https://www.livecoding.tw/) 本人了!! * [LiveCoding.tw](https://goo.gl/jpfsPo) Youtube 頻道 ## 開發Google map的經驗與問題 **媽祖繞境 GPS 定位** 最主要是大量request的衝擊。 ## 媽祖遶境 原因:喜歡家鄉,避免神轎不見,信徒打開網頁即可看見白沙屯媽祖遶境的現在位置 [2017 白沙屯媽祖 GPS 即時定位](http://www.godroad.tw/baishatun/2017/index.html) 使用AWS服務 * EC2 雲端虛擬主機 * S3 很大的空間,放靜態頁面 * RDS 關連式資料庫 * lambda (run js作者沒用) - 最初架構(常見模式) - Amazon Ec2 - smart phone 當作 gps traGcker - GPS 定時回報給 server - 固定一段時間回傳位置訊息 - 問題: - 活動很多人開這個網頁,ec2 就衝破了 - 網頁 Loading 好久 - 到900人,requset 開太大時就這樣 流量太大,撐不住。 - 第一次修改 - 做 cache - 路徑做成 .json 檔 - request 近來直接讀 json - - 第二次修改 - 使用 Amazon S3 - Ajax 改去 S3 取得路徑資料 - 去年可以撐到1904左右的人 - 今年可以撐到4500左右的人(還是很快3s開頁面) ## 天氣地圖 [天氣地圖](https://works.ioa.tw/weather/index.html) 就是前端作品 `+` 就是用 local storage 做的 最重要的就是有 open source 可以用 app 串, 也有串 api 的文件 - 最初架構 - EC2 - 幾個狀況 - seo 不優 - ec2 在大量使用者開啟時,還是會高併發 - 調整架構 - 資料整理成各鄉鎮的 html - 可以改善 seo - 放在s3(不怕高併發) - 網址中文,提高 seo - 心得 - 前端開啟網頁不用進 Ec2 - 直接去s3取得 build 好的 html - 針對不同縣市做 SEO - 加上 Amazon Cloudfront CDN - Certifivare Manaer ## 聊天地圖 [聊天地圖](https://livemaps.ioa.tw/index.html) 如果用 ajax 就爆了。 - 動機與架構 - Google Maps - geolocal api - web socket - google firebase - 串 oath - database (key:value) (類似 MongoDB) - json format - rules - storage (linke s3,放圖檔) - hosting (佈署)提供一個 https 的服務 - Notifications(for app 推播) - Firebase DATABASE - 格式 - Json - 權限 - Rules - 登入 - Authentication - 即時更新 - Realtime - 架構 - 不用自幹後端(用 firebase) - 設定好Database Json format - 設定 db rules - 專心寫前端(JavaScript)吧~~~ - 程式架構 - HTML - JavaScript、JQuery - CSS、SCSS - Gulp - Geolocation API

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully