Впервые сделал крупный проект (под NDA, так что не расскажу, какой) на облачных функциях. Впечатления противоречивые.
Изначально программисты арендовали компьютер в датацентре: или целиком или кусочек. На нём теоретически можно делать что угодно, но для запуска своих программ нужно было настроить операционную систему, безопасность и авторизацию, установить нужные исполнительные модули, программы для удобства деплоя, мониторинг нагрузки итд. Поэтому появились сервисы, которые это всё делают за тебя, а тебе дают буквально окно, куда можно написать свой код и запускать его удалённо на чужой машине.
Конкретно я пользовался решением от Яндекса, чей протокол скопирован напрямую с Amazon Web Services. Причём, в документации не только открыто об этом говорится, но ещё и в некоторых местах перенаправляют на доки от Amazon. И SDK предлагают тоже использовать амазоновский. До санкций я бы сказал, что это не так плохо — можно использовать что-то привычное тем, кто уже работал с Amazon. Но сейчас привязка к американскому сервису выглядит скорее жирным минусом. Не знаю, есть ли у Яндекса ресурсы на какое-то серьёзное разделение. Судя по состоянию документации и платформы в целом — нет.
Yandex Cloud кажется системой, которая активно развивалась несколько лет назад, а сейчас подзаброшена. Среда выполнения .NET отстаёт от актуальной на две версии (3.1 вместо 6, четвёртой версии не существует). Изначально мой проект был написан как обычное контейнеризированное приложение на .NET 6, а потом я переводил его на функции. Пришлось пройтись по всему коду и переписать несовместимые куски с C#10 на C#8, это было не слишком приятно.
Документации фактически нет, а там, где есть, много путаницы. В примерах написано одно, по факту другое: например в функцию вместо объекта Request приходит просто строка, а разбирать её надо самому. Авторизацию я нашёл только на Stackoverflow. Интересно, что адекватных доков про неё не было ни у Яндекса, ни у Amazon.
Функция выполняется и выгружается, поэтому ваша программа не должна рассчитывать на наличие постоянно живущего процесса. Мне пришлось вытащить из неё большой словарь, который грузится при старте, и положить уже подготовленные данные из него в Object Storage — это такое горячее файловое хранилище, там же рядом с функциями. Справедливости ради, работает это всё быстрее, чем я думал. Удалось запихнуть в функции даже сравнительно большой проект с кучей классов, создающий при запуске несколько десятков объектов и производящий загрузку из сети с декомпрессией.
Другой важный плюс — бесплатная квота довольно внушительная: миллион вызовов и 10Гб*часов оперативной памяти в месяц. Для пет проекта вы сможете вообще не покупать сервер. Но если сервер у вас всё-таки есть, деплой вы уже настроили, то удобнее будет, конечно, делать как привычно. И гибкости больше.
#dev
🛵 Two female tourists fell from the Yellow Bridge on Nusa Lembongan
📰 They were riding a motorcycle across the bridge connecting Nusa Lembongan and Nusa Ceningan when they lost control, collided with the railing, and plunged into the water. The police have urged local authorities and road services to urgently repair the bridge, which is in a state of disrepair and poses a threat to all road users.
#accidents#roads@BaliNews
🪨A road that collapsed near Ubud has blocked a tourist route
📍 A main road collapsed in Pedjeng village in Tampaksiring district, Gianyar. The collapse was 25 meters deep and 15 meters wide.
🚧 Authorities have completely closed the road as it was impassable for both cars and motorcycles.
📰 The Public Works Department is expected to restore the collapsed road as soon as possible. It is of great importance to locals and tourists alike. Passersby now have to make a significant detour. Farmers who used to use this route to transport their crops are also affected.
@BaliNews
#accidents#roads
🛣Gilimanuk-Mengvi highway decided to split into three parts
📰 The Gilimanuk-Mengvi highway is in the news again. This time the authorities, apparently tired of finding investors and buying back land, decided to change their approach.
🔎 They have divided the 100-kilometer toll road into three sections and are going to work with each of them separately, namely:
Section 1: Gilimanuk-Pekutatan, which is 53.6 km long.
Section 2: Pecutatan-Soka, 24.3 km long.
Section 3: Soka-Mengvi, 18.9 km long.
📆 It is scheduled to be completed in 2028.
@BaliNews
#roads#projects
🛣Construction of a new highway to western Bali will resume in 2025
📰 Minister for Infrastructure Affairs Dodi Hanggoto said that construction of the Mengwi-Gilimanuk highway will continue in 2025. The minister emphasized that President Prabowo Subianto's plan to develop the north of the island, including the construction of a second airport there, cannot be fulfilled without a new road.
🔎 The road will be 97 kilometers long and the potential cost of construction is $1.58 billion. The project is now at the stage of approval of the general contractor.
📆 Also last week, Governor Wayan Koster confirmed that construction of the highway will begin in mid-2025. Until then, the local government is committed to buying the land for future construction.
ℹ️ On September 10, 2022, authorities had already announced the start of construction, but after that, the project stood up due to lack of funding. We would like to believe that the new authorities will find the necessary funds and the project will still be realized.
@BaliNews
#projects#roads
🌍 The world’s highest paved international road, the Karakoram Highway, climbs over 4,700 meters linking China and Pakistan. Its route carves through mountains shaped by ancient glaciers and landslides. ✨
#transport⚡#mountains⚡#roads⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 The Trans-Amazonian Highway spans over 4,000 kilometers across Brazil, but much of it remains unpaved and nearly impassable in the rainy season, highlighting the challenges of transport geography in remote regions. ✨
#infrastructure⚡#roads⚡#rainforest⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 The world’s longest continuous road, the Pan-American Highway, stretches about 30,000 kilometers from Alaska to Argentina. Its route is interrupted by a wild jungle gap called the Darién Gap. ✨
#transport⚡#infrastructure⚡#roads⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🛣Bali will have new bus routes and toll roads
🧳 The Kintamani region of Bali is gaining popularity with touristsand island authorities are looking for ways to make traveling to this remote area easier.
📍 The Bangli Transportation Authority has proposed adding new bus routes to Kintamani to make it easier for tourists to get there. There are plans to open a new Damri bus route that will connect Kintamani to Ubud via Payangan and Gianyar.
🪙 In southern Bali, congestion is also being tackled by building new roads. Indonesian Tourism Minister Sandiaga Uno revealed the construction of a new toll road that will connect resorts in southern Bali with northern regions. The project has been approved by the central government and a tender for construction will be held in 2025.
📆 The work will temporarily worsen traffic congestion in the Kuta, Jimbaran and Baypas Ngurah Rai and Labuan Sait areas. Travelers are advised to plan their trips in advance and take into account delays in the Bukit Peninsula area from September.
@BaliNews
#roads#transport#tourism
🛣Transportation changes in Bali and their implications
📆 Next month sees the launch of several infrastructure projects that, while intended to improve the traffic situation in the long term, could make it much more difficult in the short term.
These include:
1 - The start of construction of the metro, namely its first section between the airport and Kuta.
2 - The construction of two new underground interchanges: one in Sanur, at the intersection of Tohpati and Bypass, the second – the exit from Bypass towards Uluwatu.
3 - The ongoing mass paving of storm drains and sidewalks in central Bukit.
❓What should tourists do?
The solution for tourists going to Bali anytime soon is to choose self-sufficient neighborhoods where you don't have to drive anywhere and everything can be done on foot.
Plus, instead of staying for a week or more in one place, travelers divide their vacation into 3-4 days in one location and then move on to other places of interest.
A classic set might look like this: Uluwatu/Bingin for beach vacations and beautiful sunsets, Ubud for cultural vacations, and north Bali for a couple days for unique nature.
@BaliNews
#roads#transport#tourism
🛣Bali's big toll road project is back on the agenda
👍 One of Bali's biggest infrastructure projects resumes this month. Development teams have been given permission to proceed with work on the Gilimanuk-Mengwi toll road, which will connect the heart of the island to the far west, the Java Ferry.
In June 2024, after nearly two years of delays and postponements, the land acquisition process will be allowed to continue. Construction itself will begin as early as September.
@BaliNews
#goodnews#transport#roads
⛔Bali Tol Mandara toll road will close for 32 hours during Nyepi
📰 PT Jasamarga Bali Tol management company PT Jasamarga Bali Tol announced that it will temporarily close access to the Bali Tol Mandara Toll Road for 32 hours due to the Nyepi celebration on March 29, 2025.
🚧 The road will become inaccessible on Friday, March 28 at 23:00 and will reopen on Sunday, March 30 at 07:00.
Although the road will be closed to the general public, passage will be free for emergency services and in case of non-emergency situations.
@BaliNews
#transport#roads#holidays