<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chanin Chongmeesuk on Medium]]></title>
        <description><![CDATA[Stories by Chanin Chongmeesuk on Medium]]></description>
        <link>https://medium.com/@chaninchongmeesuk?source=rss-e31e117d8355------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eAMwSoBgI2U-AehA.</url>
            <title>Stories by Chanin Chongmeesuk on Medium</title>
            <link>https://medium.com/@chaninchongmeesuk?source=rss-e31e117d8355------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 18:54:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chaninchongmeesuk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ใช้ MongoDB ฟรีๆ ด้วย MongoDB Atlas]]></title>
            <link>https://medium.com/@chaninchongmeesuk/%E0%B9%83%E0%B8%8A%E0%B9%89-mongodb-%E0%B8%9F%E0%B8%A3%E0%B8%B5%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-mongodb-atlas-c16ca21d8f34?source=rss-e31e117d8355------2</link>
            <guid isPermaLink="false">https://medium.com/p/c16ca21d8f34</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[ใช้-mongo-ฟรี]]></category>
            <category><![CDATA[mongodb-atlas]]></category>
            <category><![CDATA[how-to-mongodb-atlas]]></category>
            <dc:creator><![CDATA[Chanin Chongmeesuk]]></dc:creator>
            <pubDate>Mon, 18 Mar 2019 10:45:18 GMT</pubDate>
            <atom:updated>2019-03-18T10:45:18.616Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VNthQb_I7B0voN97E21hg.png" /></figure><h3>เกริ่นก่อนเริ่ม</h3><p>เนื่องจาก ผมจะต้องทำ โปรเจค ที่ต้องใช้ MongoDB ในการทำ Database ซึ่งส่วนตัวเเล้วจะชอบเป็น cloud เพื่อจะได้ง่ายตอนเอาขึ้น Production โดยปรกติ จะใช้ mLab เเต่ เหมือนว่า mLab จะโดนซื้อไปโดย MongoDB เรียบร้อย ผมก็เลย ว่าจะลองใช้ตัว mongodb atlas ดู</p><h3>What is “MongoDB Atlas”</h3><p>คือ ระบบ MongoDB as a service ที่เป็น การรวมกันของ MongoDB เอง กับ Atlas ที่เป็นผู้ให้ บริการ Cloud ซึ่งข้อดีก็มีอยุ่มากมาย เช่น</p><p><a href="https://www.mongodb.com/mongodb-scale">Scalability</a> เค้าก็จะมี3 เเบบ</p><ul><li><strong>Cluster Scale</strong>. Distributing the database across 100+ nodes, often in multiple data centers</li><li><strong>Performance Scale</strong>. Sustaining 100,000+ database read and writes per second while maintaining strict latency SLAs</li><li><strong>Data Scale</strong>. Storing 1 billion+ documents in the database</li></ul><p>มีCloud ที่จะวางให้เลือก 3 เจ้า</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*riNJn4YqOv5o31qNLpQCvA.png" /></figure><p>เเต่ละเจ้าก็จะมี <strong>Free Tier</strong> ที่ใช้กันฟรี ยาวๆไปเลยทีเดียว(แต่ Spec ของ Free Tier จะเเตกต่างกันออกไป) ชอบเจ้าไหนก็จัดไปได้เลยฮะ</p><h3>Let’s rock!</h3><p>เริ่มต้นก็ สมัครสมาชิค ไปเลย ตรงปุ่ม Try FREE <a href="https://www.mongodb.com/cloud/atlas">https://www.mongodb.com/cloud/atlas</a></p><p>หลังจากสมัครเสร็จ ก็ไม่ต้องไปยืนยันอะไร มันจะเด้งมาหน้า สร้างCluster เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z_hjtcrxW5V7fopGrnDkEg.png" /></figure><p>เลือกตามที่ชอบใจ เลยฮะ ในส่วนนี้ผม เลือก GCP/<strong>Singapore </strong>(asia-southeast1)ที่เป็น Free Tier . อิอิ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*pX9k95V0qzibooDpRnkg4g.png" /></figure><p>ป.ล. ถ้าเลือกเป็น Free Tier ก็จะทำอะไรมากมายไม่ค่อยได้ เช่น ทำ <strong>Backup</strong>, <strong>Multi-Region</strong>, <strong>Workload Isolation</strong>, and <strong>Replication Options </strong>ส่วนใหญ่ก็จะต้อง เป็น Tier M10 ขึ้นไป ถึงจะทำได้</p><p>หลังจากนั้นก็ ใส่ชื่อCluster Name เเล้วกด สร้าง ได้เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GdYPdwC5KVahNxCDNZMcfw.png" /></figure><p>หลังจากสร้างเสร็จ เราก็ต้องไปที่ Tab <strong>Security</strong> เพื่อทำการสร้าง DB User</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*GdyOnNqPdPrwPmqr3W0Oig.png" /></figure><p>ในที่นี้ผมจะสร้าง ให้เป็น Atlas admin ไปเลย</p><p>ต่อไป ก็ไปที่ Tab <strong>IP Whitelist </strong>ถ้ารู้ ว่าapp เราจะใช้กับipอะไรก็ใส่เเค่ip เข้าไปจะดีกว่านะครับเพื่อความปลอดภัย เเต่ในที่นี่ผมใช้ <strong>ALLOW ACCESS FROM ANYWHERE </strong>ฮ่าๆ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*ctfkgptnIs_Hx1UjpHnlsg.png" /></figure><p>เป็นอันเสร็จเรียบร้อย สำหรับการสร้าง MongoDB server บน Cloud ของ MongoDB Atlas</p><h3>Connect to MongoDB</h3><p>ในการเชื่อมต่อ ไปยัง Server ทาง MongoDB Atlas ก็จะมี 3 วิธี ตามรุป ข้างล่าง เเต่วันนี้ ผมจะใช้Tool ตัวนึง ชื่อ <strong>Compass </strong>ซึ่งเป็นของ MongoDB เอง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*-tNgNOTk0Gl5H2oVyxy1vA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*1eheuS-6uJbQoWwwsAJL9Q.png" /></figure><p>หลังจากติดตั้ง เสร็จก็ เปิดมันขึ้นมาเเล้ว New Connection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thYMThvheDMMSoThbAEe2Q.png" /></figure><p><strong>Hostname</strong>: project-x-yuyvl.gcp.mongodb.net</p><p><strong>SRV Record</strong>: On</p><p><strong>Authentication: </strong>NoneUsername / PasswordSCRAM-SHA-256</p><p><strong>Username:</strong> Userที่สร้าง</p><p><strong>Password: </strong>Password ที่สร้าง</p><p><strong>Authentication Database: </strong>admin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nrvlFiKxAIM9O1kgIeeuZw.png" /></figure><p>เเล้วกด <strong>CONNECT</strong> โลดดดดดด</p><p>ปล ตรง hostname ผมจะเอามาเเค่สุดตรง .net ไม่เอา /test มา เพราะ ว่าไม่ได้ใช้ collection test</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nrvlFiKxAIM9O1kgIeeuZw.png" /></figure><p>เเค่นี้เป็นอันเสร็จสิ้น</p><h3>END:</h3><p>ขอให้สนุกสนาน กับการใช้ Mongo บนคราว ฟรีๆ ฮะ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c16ca21d8f34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สวัสดี]]></title>
            <link>https://medium.com/@chaninchongmeesuk/%E0%B8%AA%E0%B8%A7%E0%B8%B1%E0%B8%AA%E0%B8%94%E0%B8%B5-fc6f7f3a0ad8?source=rss-e31e117d8355------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc6f7f3a0ad8</guid>
            <category><![CDATA[คิว]]></category>
            <dc:creator><![CDATA[Chanin Chongmeesuk]]></dc:creator>
            <pubDate>Tue, 18 Sep 2018 07:31:02 GMT</pubDate>
            <atom:updated>2018-09-19T07:05:18.507Z</atom:updated>
            <content:encoded><![CDATA[<p>แนะนำตัวกันก่อน</p><p>สวัสดี เราชื่อ “คิว อายุ 24 โสด”</p><p>จบ….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc6f7f3a0ad8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>